# Functions
DecodeBytesToUint32 从 4 字节的网络字节序里解析出整数 uint32.
EncodeUint32ToBytes 把整数 uint32 格式化成 4 字节的网络字节序.
FormatMap2XML format map to xml.
MarshalWithNoEscapeHTML marshal with no escape HTML.
NewAPI returns a new action.
NewCBCCrypto returns new aes-cbc crypto.
NewECBCrypto returns new aes-ecb crypto.
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
NewHTTPClient returns a new http client.
NewMockAction creates a new mock instance.
NewMockClient creates a new mock instance.
NewUploadForm returns new uplod form.
ParseXML2Map parse xml to map.
No description provided by the author
No description provided by the author
RSADecrypt rsa decryption with private key.
RSAEncrypt rsa encryption with public key.
WithBody specifies the `body` to API.
WithDecode specifies the `decode` to API.
WithHTTPClose specifies close the connection after replying to this request (for servers) or after sending this request and reading its response (for clients).
WithHTTPCookies specifies the cookies to http request.
WithHTTPHeader specifies the headers to http request.
WithHTTPTimeout specifies the timeout to http request.
WithMethod specifies the `method` to API.
WithQuery specifies the `query` to API.
WithTLS specifies the `tls` to API.
WithUploadForm specifies the `upload form` to API.
WithWXML specifies the `wxml` to API.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
PKCS5 PKCS#5 padding mode.
PKCS7 PKCS#7 padding mode.
ZERO zero padding mode.
# Structs
API is a Action implementation.
CBCCrypto aes-cbc crypto.
ECBCrypto aes-ecb crypto.
HTTPClient is a Client implementation for wechat http request.
MockAction is a mock of Action interface.
MockActionMockRecorder is the mock recorder for MockAction.
MockClient is a mock of Client interface.
MockClientMockRecorder is the mock recorder for MockClient.
UploadForm http upload form.
# Type aliases
APIOption configures how we set up the wechat API.
CDATA XML CDATA section which is defined as blocks of text that are not parsed by the parser, but are otherwise recognized as markup.
HTTPMethod http request method.
HTTPOption configures how we set up the http request.
PaddingMode aes padding mode.
WXML deal with xml for wechat.
X is a convenient alias for a map[string]interface{}.