12345678910111213141516 |
- package main
- import (
- "fmt"
- "git.nspix.com/golang/rest/v3"
- "gorm.io/driver/mysql"
- )
- func main() {
- if err := rest.Init(mysql.New(mysql.Config{
- DriverName: "mysql",
- DSN: "root:root@tcp(192.168.9.199:3306)/cci?checkConnLiveness=false&maxAllowedPacket=0",
- })); err != nil {
- fmt.Println(err.Error())
- }
- }
|