Documentation ¶
Index ¶
- func EscapedPath(u string) (path string, err error)
- func FormatDateTime(t time.Time) string
- func GenerateXml(data map[string]interface{}) string
- func HmacSha256(str string, key string) []byte
- func HttpGet(url string) ([]byte, error)
- func HttpPostJson(url string, body interface{}) ([]byte, error)
- func HttpPostXml(url string, xmlBody string) ([]byte, error)
- func IsValidAuthCode(authcode string) (ok bool)
- func MarshalJson(m interface{}) string
- func Md5(str string) []byte
- func RandomString(length int) string
- func Sha1(str string) []byte
- func SignWithType(signType string, origin string, apiKey string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidAuthCode ¶
是否是微信付款码,18位纯数字,以10、11、12、13、14、15开头
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.