Versions in this module Expand all Collapse all v1 v1.1.2 Feb 28, 2021 v1.1.0 Feb 28, 2021 Changes in this version + func CheckFileName(fileName string) error + func CheckFileType(allSupportedType []string, fileName string) error + func DecodeURI(encoded string) (string, error) + func EncodeURI(rawString string) string + func RespToBean(resp *req.Resp, returnObj interface{}) error + func RespToResult(resp *req.Resp) (*bean.RespResult, error) + type EscapeError string + func (e EscapeError) Error() string + type Headers struct + Header req.Header + func NewHeaders() *Headers + func (o *Headers) AddBasicAuthHeader(appKey string, appSecret string) + func (o *Headers) AddOAuth2Header(token string) + type ServiceClient struct + func NewServiceClient() *ServiceClient + func (o *ServiceClient) Delete(url string, v ...interface{}) *req.Resp + func (o *ServiceClient) Get(url string, v ...interface{}) *req.Resp + func (o *ServiceClient) Head(url string, v ...interface{}) *req.Resp + func (o *ServiceClient) Post(url string, v ...interface{}) *req.Resp + func (o *ServiceClient) Put(url string, v ...interface{}) *req.Resp