Documentation ¶
Index ¶
- func AesDecrypt(encodeString string, key string) (string, error)
- func AesEncrypt(str, key string) (string, error)
- func Base64Decode(src string) (string, error)
- func Base64Encode(data string) string
- func CRC32(str string) int
- func CRC64(str string) int64
- func DesDecrypt(str, key string) (string, error)
- func DesEncrypt(str, key string) (string, error)
- func GBKToUTF8(str string) string
- func JSONDecode(str string) structs.M
- func JSONDecodeArray(str string) []structs.M
- func JSONEncode(value interface{}) string
- func JSONGet(json string, path string) interface{}
- func JSONGetBool(json string, path string) bool
- func JSONGetFloat(json string, path string) float64
- func JSONGetInt(json string, path string) int64
- func JSONGetRaw(json string, path string) string
- func JSONGetString(json string, path string) string
- func MD5(str string) (string, error)
- func SHA1(str string) (string, error)
- func SHA2(str string) (string, error)
- func UTF8ToGBK(str string) string
- func XMLDecode(str string) structs.M
- func XMLEncode(value interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
AesDecrypt AES算法解密
func JSONDecodeArray ¶
JSONDecodeArray Json数组解析(返回[]structs.M)
func JSONGetBool ¶
JSONGetBool 快捷方式访问通过路径访问属性值(返回bool值)
func JSONGetFloat ¶
JSONGetInt 快捷方式访问通过路径访问属性值(返回浮点数)
func JSONGetRaw ¶
JSONGetRaw 快捷方式访问通过路径访问属性值(返回字符串,适合属性仍然是Json对象的场景)
func JSONGetString ¶
JSONGetString 快捷方式访问通过路径访问属性值(返回字符串)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.