随笔分类 -  Go

摘要:func main() { fmt.Println(splitDate("2021-03-09", "2021-04-06", "2006-01-02")) // [2021-03-09 2021-03-10 2021-03-11 2021-03-12 2021-03-13 2021-03-14 2 阅读全文
posted @ 2021-03-09 14:12 Nihility丶 阅读(426) 评论(0) 推荐(0)
摘要:package main import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/rand" "encoding/base64" "encoding/hex" "io" "log" ) func main() { origData := []byt 阅读全文
posted @ 2021-03-03 11:56 Nihility丶 阅读(1329) 评论(0) 推荐(0)
摘要:func main() { source := []string{"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"} pagesize := 10 pagesizee := 4 fmt.Printf("%+v\n", spli 阅读全文
posted @ 2020-11-02 16:49 Nihility丶 阅读(886) 评论(0) 推荐(0)
摘要:type StrategyAction1 struct { ID int64 `json:"id"` //编号 Pushtype string `json:"pushtype"` //推送类型 } type StrategyAction2 struct { ID int64 `json:"id"` 阅读全文
posted @ 2020-09-14 18:51 Nihility丶 阅读(439) 评论(0) 推荐(0)