Versions in this module Expand all Collapse all v0 v0.0.1 Dec 20, 2022 Changes in this version + func Aes128ECBDecode(data, key []byte) []byte + func Base64Decode(data string) ([]byte, error) + func Base64Encode(data []byte) string + func Date(format string, timestamp int64) string + func ErrorNew(msg string) error + func ErrorWrap(err error, msg string) error + func FileGetContents(fileName string) (string, error) + func FilePutContents(fileName string, content string) (int, error) + func GetISO8601TimeStamp() string + func GetNowDatetime() string + func ParsePrivateFromFile(file string) (private *rsa.PrivateKey, err error) + func RawUrlencode(str string) string + func RsaPrivateDecode(cipherText []byte, file string) ([]byte, error) + func RsaPrivateSha256Encode(data string, PrivateKey *rsa.PrivateKey) (signer []byte, err error) + func Rtrim(str string, characterMask ...string) string + func Sha256Encode(string string) string + func StrInArray(search string, strArr []string) bool + func Strrchr(haystack string, needle string) string + func Strrpos(haystack, needle string, offset int) int + func Strtolower(str string) string + func Strtr(haystack string, params ...interface{}) string + func Substr(str string, start uint, length int) string + func Time() int64 + func Uniqid(prefix string) string + func Urlencode(str string) string + func Uuid() string + func YeepayBase64Decode(data string) ([]byte, error) + func YeepayBase64Encode(data []byte, usePadding bool) string + func YeepayCallback(response string, yeepayConfig yeepayGo.YeepayConfig) (string, string, error) + func YeepayEncrypt(str string, pKeyFile string) string + func YeepayGetHeader(arr map[string]string) string + func YeepayGetHeaders(req request.YeepayRequest, yeepayConfig yeepayGo.YeepayConfig, ...) map[string]string + func YeepayGetSignedHeader() string + func YeepayGetSortQuery(arr map[string]string) string + type HttpResponse struct + func Post(url string, queryBody map[string]string, params map[string]string, ...) (HttpResponse, error) + func (resp *HttpResponse) SetBytes(bytes []byte) *HttpResponse + func (resp *HttpResponse) SetCode(code int) *HttpResponse + func (resp *HttpResponse) SetStartTime(startTime time.Time) *HttpResponse + func (resp HttpResponse) GetBytes() []byte + func (resp HttpResponse) GetCode() int + func (resp HttpResponse) GetLatency() float64 + func (resp HttpResponse) GetLatencyStr() string + func (resp HttpResponse) IsOk() bool