摘要:
gorm的使用 type User struct { gorm.Model Name string Age int Sex bool } func main() { db, err := gorm.Open("mysql", "root:password@/dbname?charset=utf8&p 阅读全文
摘要:
gorm 连接数据库和创建或更新表 type User struct { gorm.Model Name string Age int Sex bool } func main() { db, err := gorm.Open("mysql", "root:password@/dbname?char 阅读全文
摘要:
下载gin失败 解决办法: cmd输入 go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct 即可安装gin包 go get github.com/gin-gonic/gin goland中go.mod的requir 阅读全文