![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Golang
小小程序员Eric
学习中……
展开
-
Golang操作MySQL增删改查
import ( "database/sql" "fmt" _"github.com/go-sql-driver/mysql" ) func main() { db, err := sql.Open("mysql", "root:0314@tcp原创 2018-11-21 01:09:00 · 597 阅读 · 0 评论 -
Golang中gorm+gin的简单使用
自己做记录,方便查看 package main import ( "fmt" "github.com/gin-gonic/gin" _ "github.com/go-sql-driver/mysql" "github.com/jinzhu/gorm" ) type User struct { Id int `js原创 2018-11-23 14:17:56 · 1887 阅读 · 1 评论