摘要:package main import ( "fmt" "github.com/gomodule/redigo/redis" ) func main() { conn,err := redis.Dial("tcp","127.0.0.1:6379") if err != nil{ fmt.Printf("connect to redis fa... 阅读全文
posted @ 2018-10-03 17:07 木易森林 阅读(335) 评论(0) 推荐(0) 编辑
摘要:package main import ( "database/sql" "fmt" _ "github.com/go-sql-driver/mysql" ) func main() { db,err := sql.Open("mysql","root:1234@tcp(127.0.0.1:3306)/oa?charset=utf8"); if err... 阅读全文
posted @ 2018-10-03 16:58 木易森林 阅读(6523) 评论(0) 推荐(0) 编辑