Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2020 v0.0.1 Jul 31, 2019 Changes in this version + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesEncrypt(origData, key []byte) ([]byte, error) + func GenWeChatPaySign(m map[string]string, payKey string) (string, error) + func GetBillNo(prefix string, length int) string + func GetTradeNO(prefix string) string + func NewRequest(method, url string, data []byte) (body []byte, err error) + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte + func RandomLenNum(length int) string + func RandomNum(min int64, max int64) int64 + func RandomNumString(min int64, max int64) string + func RandomString(length int) string + func Struct2Map(r interface{}) (s map[string]string, err error) + func ToStringE(i interface{}) (string, error) + type Request struct + Client *http.Client + func NewCertRequest(certFile, keyFile, rootCaFile string) (*Request, error) + func (m *Request) NewRequest(method, url string, data []byte) (body []byte, err error)