Versions in this module Expand all Collapse all v2 v2.0.1 Jun 22, 2022 v2.0.0 Jun 22, 2022 Changes in this version + func FetchSource(uri string) []byte + func JsonToByte(t interface{}) []byte + func JsonToString(t interface{}) string + func PostBufferFileWithField(path, name string, file io.Reader, fileName string, fields map[string]string, ...) ([]byte, error) + func ReduceUrl(uri string, params Query) (string, error) + type App interface + GetAccessToken func(reflush ...bool) *Token + GetConfig func() Config + type Config struct + Appid string + Secret string + type ContextToken struct + Appid string + Token string + type Domain string + type JsonResponse struct + ErrMsg string + Errcode int + type MapBoolean map[string]bool + type MapInterface map[string]interface + type MapStr map[string]string + type Query map[string]string + type Read func(appid string) *Token + type Response []byte + func Get(path string, extends ...interface{}) (Response, error) + func PostBody(path string, body []byte, extends ...interface{}) (Response, error) + func PostBufferFile(path, name string, file io.Reader, fileName string, extends ...interface{}) (Response, error) + func PostPathFile(path, name string, file io.Reader, filePath string, extends ...interface{}) (Response, error) + func (r *Response) Map() (MapInterface, error) + func (r *Response) String() string + func (r *Response) Unmarshal(p interface{}) error + type Token struct + Token string + UpdateTime int + type Write func(appid, accessToken string) *Token Other modules containing this package github.com/strugglerx/wechat