摘要: package main import ( "fmt" "gopkg.in/ini.v1" "log" "time" ) func main() { cfg, err := ini.Load("config.ini") getErr("load config", err) // 遍历所有的secti 阅读全文
posted @ 2022-02-10 11:15 酷酷的城池 阅读(539) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bytes" "encoding/json" "errors" "fmt" "github.com/garyburd/redigo/redis" "time" ) type RedisPool struct { pool *redis.Pool } fu 阅读全文
posted @ 2022-02-10 10:38 酷酷的城池 阅读(122) 评论(0) 推荐(0) 编辑