Versions in this module Expand all Collapse all v0 v0.0.1 Apr 21, 2021 Changes in this version + var TimeOut time.Duration = 60 * time.Second + func AesDecrypt(src, key []byte) (dst []byte, err error) + func AesEncrypt(src []byte, key []byte) ([]byte, error) + func GetBody(uri string) ([]byte, error) + func GetFile(filename, uri string) error + func GetJson(uri string, v interface{}) error + func GetRandomString(l int) string + func GetXml(uri string, v interface{}) error + func Min(first int, args ...int) int + func PKCS7Pad(msg []byte, blockSize int) []byte + func PKCS7UnPad(msg []byte) []byte + func PostFile(fieldname, filename, uri string) ([]byte, error) + func PostJson(uri string, obj interface{}) ([]byte, error) + func PostJsonPtr(uri string, obj interface{}, result interface{}, contentType ...string) (err error) + func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error) + func PostXmlPtr(uri string, obj interface{}, result interface{}) (err error) + func SetTimeOut(d time.Duration) + func SortMd5(s ...string) string + func SortSha1(s ...string) string + func Substr(str string, start int, end int) string + type MultipartFormField struct + Fieldname string + Filename string + IsFile bool + Value []byte