Documentation ¶
Index ¶
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func Chr(ascii int) string
- func Crc32(str string) uint32
- func DynamicDecrypt(secret string, str string) string
- func DynamicEncrypt(secret string, str string) string
- func HTTPBuildQuery(queryData url.Values) string
- func Md5(str string) string
- func Md5File(path string) (string, error)
- func Rawurldecode(str string) (string, error)
- func Rawurlencode(str string) string
- func Sha1(str string) string
- func Sha1File(path string) (string, error)
- func URLDecode(str string) (string, error)
- func URLEncode(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chr ¶
将ASCII码值转化为字符串。 此函数与PHP的Mb_chr()函数转换结果一致,与php的chr()转换结果不一致 因为golang统一是utf-8编码,rune uses UTF-8,ASCII码值在127以下,127一下是可以和php对等,超过127的ASCII值翻译就无法对等了
func DynamicDecrypt ¶
func DynamicEncrypt ¶
func Rawurlencode ¶
遵守94年国际标准备忘录RFC 1738的URL编码,PHP中推荐使用,Rawurlencode,弃用URLEncode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.