随笔分类 -  go语言

摘要:package main import ( jsoniter "github.com/json-iterator/go" ) func String2Bytes(data string) []byte { return []byte(data) } func main() { s := `{"cod 阅读全文
posted @ 2023-02-22 14:54 AngDH 阅读(100) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" "math/rand" "time" ) func MicsSlice(origin []int64, count int) []int64 { tmpOrigin := make([]int64, len(origin)) copy(tmpO 阅读全文
posted @ 2023-02-21 21:07 AngDH 阅读(427) 评论(0) 推荐(0) 编辑
摘要:https://henreash.blog.csdn.net/article/details/84927164 阅读全文
posted @ 2023-02-02 16:18 AngDH 阅读(18) 评论(0) 推荐(0) 编辑
摘要:import ( redigo "github.com/gomodule/redigo/redis" ) func NewPool() *redigo.Pool { //return &redigo.Pool{ // MaxIdle: 3, // IdleTimeout: 240 * time.Se 阅读全文
posted @ 2023-01-17 17:51 AngDH 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示