摘要: #Go Mysql @(Golang) 说明 1. 安装 go get github.com/go-sql-driver/mysql go get github.com/jmoiron/sqlx 2. 连接 database, err := sqlx.Open("mysql", "root:XXXX 阅读全文
posted @ 2021-05-26 17:35 Xjng 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1.安装 go get github.com/garyburd/redigo/redis ###2.连接 package main import ( "fmt" "github.com/garyburd/redigo/redis" ) func main() { c, err := redis.Di 阅读全文
posted @ 2021-05-26 17:33 Xjng 阅读(95) 评论(0) 推荐(0) 编辑