Versions in this module Expand all Collapse all v1 v1.0.1 Dec 27, 2024 Changes in this version + func ByteToBase64(d []byte) string v1.0.0 Jun 6, 2022 Changes in this version + func FetchSource(uri string) []byte + func Get(path string, extends ...interface{}) ([]byte, error) + func JsonToByte(t interface{}) []byte + func JsonToString(t interface{}) string + func PostBody(path string, body []byte, extends ...interface{}) ([]byte, error) + func PostBufferFile(path, name string, file io.Reader, fileName string, extends ...interface{}) ([]byte, error) + func PostBufferFileWithField(path, name string, file io.Reader, fileName string, fields map[string]string, ...) ([]byte, error) + func PostPathFile(path, name string, file io.Reader, filePath string, extends ...interface{}) ([]byte, error) + func ReduceUrl(uri string, params Query) (string, error) + type App interface + GetAccessToken func(reflush ...bool) *Token + GetConfig func() Config + func ContextApp(a App) App + type Config struct + Appid string + Secret string + type ContextToken struct + Appid string + Token string + func ExtractAppidAndAccessToken(appidAndAccessToken ...string) (ContextToken, error) + type Domain string + type Hook func(appidAndAccessToken ...string) *Token + type MapBoolean map[string]bool + type MapInterface map[string]interface + type MapStr map[string]string + type Query map[string]string + type Token struct + Token string + UpdateTime int