随笔分类 - Golang
摘要:ICacheQueryBase type ICacheQueryBase interface { GetCacheKey() string } CacheMiddleware package entity_cache import ( "encoding/json" "errors" "github
阅读全文
摘要:封装 package helper import ( "encoding/json" "io" "io/ioutil" "net/http" "net/url" "strings" ) type JsonHttpClientHelper struct { client *http.Client }
阅读全文
摘要:包装类 package helper import ( "fmt" "sync" ) type RetryHelper struct { } var instance *RetryHelper var once sync.Once func GetRetryHelperInstance() *Ret
阅读全文