建立MySQL连接
Go
package model
import (
"MySQLExport/config"
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
"log"
"time"
)
var db *gorm.DB
func DbInit(conf) {
// 创...
9-15 2 views
建立MySQL连接
Go
package model
import (
"MySQLExport/config"
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/...