Documentation ¶
Index ¶
- Constants
- Variables
- type BodyMap
- func (bm BodyMap) CheckEmptyError(keys ...string) error
- func (bm BodyMap) EncodeAliPaySignParams() string
- func (bm BodyMap) EncodeURLParams() string
- func (bm BodyMap) EncodeWeChatSignParams(apiKey string) string
- func (bm BodyMap) Get(key string) string
- func (bm BodyMap) GetInterface(key string) interface{}
- func (bm BodyMap) GetString(key string) string
- func (bm BodyMap) JsonBody() (jb string)
- func (bm BodyMap) MarshalXML(e *xml.Encoder, start xml.StartElement) (err error)
- func (bm BodyMap) Remove(key string)
- func (bm BodyMap) Reset()
- func (bm BodyMap) Set(key string, value interface{}) BodyMap
- func (bm BodyMap) SetBodyMap(key string, value func(b BodyMap)) BodyMap
- func (bm BodyMap) SetFormFile(key string, file *util.File) BodyMap
- func (bm BodyMap) Unmarshal(ptr interface{}) (err error)
- func (bm *BodyMap) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)
- type DebugSwitch
Constants ¶
View Source
const ( NULL = "" SUCCESS = "SUCCESS" FAIL = "FAIL" OK = "OK" DebugOff = 0 DebugOn = 1 Version = "1.5.78" )
Variables ¶
View Source
var ( MissWechatInitParamErr = errors.New("missing wechat init parameter") MissAlipayInitParamErr = errors.New("missing alipay init parameter") MissPayPalInitParamErr = errors.New("missing paypal init parameter") MissParamErr = errors.New("missing required parameter") MarshalErr = errors.New("marshal error") UnmarshalErr = errors.New("unmarshal error") SignatureErr = errors.New("signature error") VerifySignatureErr = errors.New("verify signature error") CertNotMatchErr = errors.New("cert not match error") GetSignDataErr = errors.New("get signature data error") )
Functions ¶
This section is empty.
Types ¶
type BodyMap ¶
type BodyMap map[string]interface{}
func (BodyMap) CheckEmptyError ¶ added in v1.5.42
func (BodyMap) EncodeAliPaySignParams ¶ added in v1.5.42
("bar=baz&foo=quux") sorted by key.
func (BodyMap) EncodeURLParams ¶ added in v1.5.56
("bar=baz&foo=quux") sorted by key.
func (BodyMap) EncodeWeChatSignParams ¶ added in v1.5.42
("bar=baz&foo=quux") sorted by key.
func (BodyMap) GetInterface ¶ added in v1.5.42
获取原始参数
func (BodyMap) MarshalXML ¶ added in v1.5.42
func (BodyMap) SetBodyMap ¶ added in v1.5.42
func (BodyMap) SetFormFile ¶ added in v1.5.42
设置 FormFile
func (*BodyMap) UnmarshalXML ¶ added in v1.5.42
type DebugSwitch ¶ added in v1.5.42
type DebugSwitch int8
Click to show internal directories.
Click to hide internal directories.