Documentation ¶
Index ¶
- func Base64Decode(src []byte) []byte
- func Base64DecodeStr(src string) string
- func Base64Encode(src []byte) []byte
- func Base64EncodeFile(file string) []byte
- func Base64EncodeFileStr(file string) string
- func Base64EncodeStr(src string) string
- func GbkToUtf8(srcBytes []byte) []byte
- func GbkToUtf8Str(src string) string
- func HexDecode(buf []byte) []byte
- func HexDecodeStr(src string) string
- func HexEncode(buf []byte) []byte
- func HexEncodeStr(src string) string
- func HtmlSpecialChars(str string) string
- func HtmlSpecialCharsDecode(str string) string
- func UrlDecodeStr(buf string) string
- func UrlEncodeStr(buf string) string
- func Utf8ToGbk(srcBytes []byte) []byte
- func Utf8ToGbkStr(src string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func Base64EncodeFile ¶
func Base64EncodeFileStr ¶
func GbkToUtf8Str ¶
func HexDecodeStr ¶
func HexEncodeStr ¶
func HtmlSpecialChars ¶
将特殊字符转换为 HTML 实体,也可使用 html.EscapeString
func HtmlSpecialCharsDecode ¶
将特殊的 HTML 实体转换回普通字符,也可使用 html.UnescapeString
func Utf8ToGbkStr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.