随笔分类 -  Golang

摘要:ICacheQueryBase type ICacheQueryBase interface { GetCacheKey() string } CacheMiddleware package entity_cache import ( "encoding/json" "errors" "github 阅读全文
posted @ 2022-08-30 13:08 FCmmmmmm 阅读(37) 评论(0) 推荐(0) 编辑
摘要:封装 package helper import ( "encoding/json" "io" "io/ioutil" "net/http" "net/url" "strings" ) type JsonHttpClientHelper struct { client *http.Client } 阅读全文
posted @ 2022-01-28 17:27 FCmmmmmm 阅读(452) 评论(0) 推荐(0) 编辑
摘要:包装类 package helper import ( "fmt" "sync" ) type RetryHelper struct { } var instance *RetryHelper var once sync.Once func GetRetryHelperInstance() *Ret 阅读全文
posted @ 2022-01-27 10:42 FCmmmmmm 阅读(377) 评论(0) 推荐(0) 编辑

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