package
2.1.8-rc.1
Repository: https://github.com/silenceper/wechat.git
Documentation: pkg.go.dev

# Functions

AESDecryptMsg ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId] 参考:github.com/chanxuehong/wechat.v2.
AesECBDecrypt will decrypt data with PKCS5Padding.
AESEncryptMsg ciphertext = AES_Encrypt[random(16B) + msg_len(4B) + rawXMLMsg + appId] 参考:github.com/chanxuehong/wechat.v2.
CalculateSign 计算签名.
DecodeWithCommonError 将返回值按照 CommonError 解析.
DecodeWithError 将返回值按照解析.
DecryptMsg 消息解密.
EncryptMsg 加密消息.
GetCurrTS return current timestamps.
HTTPGet get 请求.
HTTPGetContext get 请求.
HTTPPost post 请求.
HTTPPostContext post 请求.
NewCommonError 新建 CommonError 错误,对于无 errcode 和 errmsg 的返回也可以返回该通用错误.
NewECBDecryptor returns a BlockMode which decrypts in electronic code book mode, using the given Block.
NewECBEncryptor returns a BlockMode which encrypts in electronic code book mode, using the given Block.
OrderParam order params.
ParamSign 计算所传参数的签名.
PKCS5Padding -.
PKCS5UnPadding -.
PostFile 上传文件.
PostFileByStream 上传文件.
PostFileFromReader 上传文件,从 io.Reader 中读取.
PostJSON post json 数据请求.
PostJSONContext post json 数据请求.
PostJSONWithRespContentType post json 数据请求,且返回数据类型.
PostMultipartForm 上传文件或其他多个字段.
PostXML perform a HTTP/POST request with XML body.
PostXMLWithTLS perform a HTTP/POST request with XML body and TLS.
Query 将Map序列化为Query参数.
RandomStr 随机生成字符串.
RSADecrypt 数据解密.
RSADecryptBase64 Base64解码后再次进行RSA解密.
SetURIModifier 设置URI修改器.
Signature sha1签名.
SliceChunk 用于将字符串切片分块.
Template 对字符串中的和map的key相同的字符串进行模板替换 仅支持 形如: {name}.

# Constants

微信签名算法方式.
微信签名算法方式.

# Variables

DefaultHTTPClient 默认httpClient.

# Structs

CommonError 微信返回的通用错误 json.
MultipartFormField 保存文件或其他字段信息.

# Type aliases

ECBDecryptor -.
ECBEncryptor -.
URIModifier URI修改器.