Go
Maybe I Simple
这个作者很懒,什么都没留下…
展开
-
BeeGo
1、安装beego(有可能失败多试几次) go get github.com/astaxie/beego 1.1、git https 无法获取,请配置本地的 git,关闭 https 验证: git config --global http.sslVerify false 1.2、升级 1.2.1、命令行升级 go get -u github.com/astaxie/beego 1.2.2、访问https://github.com/astaxie/beego,下载源码,然后覆盖...原创 2022-04-01 17:25:39 · 252 阅读 · 0 评论 -
Golang 数据库 “增、删、改、查”
1、增 func insert() { db1, err := sql.Open("mysql", "root:root@tcp(127.0.0.1:3306)/cy?parseTime=true") if err != nil{ fmt.Println(err) } defer db1.Close() stmt, err := db1.Prepare("insert into person(user_id,username,sex,email)value (?,?,?,?)") res原创 2022-01-10 11:11:35 · 516 阅读 · 0 评论