Documentation
¶
Index ¶
- Variables
- func Base32Padding(i string) string
- func Base64Padding(i string) string
- func CharDetect(raw interface{}) ([]chardet.Result, error)
- func CharDetectBest(raw interface{}) (*chardet.Result, error)
- func DecodeBase32(i string) ([]byte, error)
- func DecodeBase64(i string) ([]byte, error)
- func DecodeBase64Url(i interface{}) ([]byte, error)
- func DecodeHex(i string) ([]byte, error)
- func EncodeBase32(i interface{}) string
- func EncodeBase64(i interface{}) string
- func EncodeBase64Url(i interface{}) string
- func EncodeHtmlEntity(i interface{}) string
- func EncodeHtmlEntityHex(i interface{}) string
- func EncodeToHex(i interface{}) string
- func EncodeUrlCode(i interface{}) string
- func EscapeInvalidUTF8Byte(s []byte) string
- func ForceQueryUnescape(s string) string
- func GB18030ToUtf8(s []byte) ([]byte, error)
- func GBKSafeString(s []byte) (string, error)
- func GbkToUtf8(s []byte) ([]byte, error)
- func HTTPChunkedEncode(raw []byte) []byte
- func HZGB2312ToUtf8(s []byte) ([]byte, error)
- func HmacMD5(key, data interface{}) []byte
- func HmacSM3(key, data interface{}) []byte
- func HmacSha1(key, data interface{}) []byte
- func HmacSha256(key, data interface{}) []byte
- func HmacSha512(key, data interface{}) []byte
- func MMH3Hash128(i interface{}) string
- func MMH3Hash128x64(i interface{}) string
- func MMH3Hash32(i interface{}) int64
- func Md5(i interface{}) string
- func MustPKCS5UnPadding(origData []byte) ([]byte, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PathUnescape(s string) (string, error)
- func QueryEscape(s string) string
- func QueryUnescape(s string) (string, error)
- func RandomUpperAndLower(s string) string
- func Sha1(i interface{}) string
- func Sha224(i interface{}) string
- func Sha256(i interface{}) string
- func Sha384(i interface{}) string
- func Sha512(i interface{}) string
- func StrConvQuoteHex(s string) string
- func StrConvUnquoteForce(s string) []byte
- func UrlUnicodeDecode(s string) string
- func Utf8ToGB18030(s []byte) ([]byte, error)
- func Utf8ToGbk(s []byte) ([]byte, error)
- func Utf8ToHZGB2312(s []byte) ([]byte, error)
- func ZeroPadding(origin []byte, blockSize int) []byte
- func ZeroUnPadding(originData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EscapeHtmlString = html.EscapeString UnescapeHtmlString = html.UnescapeString StrConvUnquote = strconv.Unquote StrConvQuote = strconv.Quote )
View Source
var DoubleDecodeUrl = func(i string) (string, error) { raw, err := url.QueryUnescape(i) if err != nil { return "", err } return url.QueryUnescape(raw) }
View Source
var DoubleEncodeUrl = func(i interface{}) string { return url.QueryEscape(EncodeUrlCode(i)) }
View Source
var PathEscape = url.PathEscape
Functions ¶
func Base32Padding ¶
func Base64Padding ¶
func CharDetect ¶
func CharDetectBest ¶
func DecodeBase32 ¶
func DecodeBase64 ¶
func DecodeBase64Url ¶
func EncodeBase32 ¶
func EncodeBase32(i interface{}) string
func EncodeBase64 ¶
func EncodeBase64(i interface{}) string
func EncodeBase64Url ¶
func EncodeBase64Url(i interface{}) string
func EncodeHtmlEntity ¶
func EncodeHtmlEntity(i interface{}) string
func EncodeHtmlEntityHex ¶
func EncodeHtmlEntityHex(i interface{}) string
func EncodeToHex ¶
func EncodeToHex(i interface{}) string
func EncodeUrlCode ¶
func EncodeUrlCode(i interface{}) string
func EscapeInvalidUTF8Byte ¶
func ForceQueryUnescape ¶
func GB18030ToUtf8 ¶
func GBKSafeString ¶
func HTTPChunkedEncode ¶
func HZGB2312ToUtf8 ¶
func HmacSha256 ¶
func HmacSha256(key, data interface{}) []byte
func HmacSha512 ¶
func HmacSha512(key, data interface{}) []byte
func MMH3Hash128 ¶
func MMH3Hash128(i interface{}) string
func MMH3Hash128x64 ¶
func MMH3Hash128x64(i interface{}) string
func MMH3Hash32 ¶
func MMH3Hash32(i interface{}) int64
func MustPKCS5UnPadding ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PathUnescape ¶
func QueryEscape ¶
func QueryUnescape ¶
func RandomUpperAndLower ¶
func StrConvQuoteHex ¶
func StrConvUnquoteForce ¶
func UrlUnicodeDecode ¶
func Utf8ToGB18030 ¶
func Utf8ToHZGB2312 ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.