xencode

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(src []byte) []byte

func Base64DecodeStr

func Base64DecodeStr(src string) string

计算Base64Decode

func Base64Encode

func Base64Encode(src []byte) []byte

func Base64EncodeFile

func Base64EncodeFile(file string) []byte

func Base64EncodeFileStr

func Base64EncodeFileStr(file string) string

func Base64EncodeStr

func Base64EncodeStr(src string) string

计算Base64Encode

func GbkToUtf8

func GbkToUtf8(srcBytes []byte) []byte

func GbkToUtf8Str

func GbkToUtf8Str(src string) string

func HexDecode

func HexDecode(buf []byte) []byte

计算HexDecode

func HexDecodeStr

func HexDecodeStr(src string) string

func HexEncode

func HexEncode(buf []byte) []byte

计算HexEncode

func HexEncodeStr

func HexEncodeStr(src string) string

func HtmlSpecialChars

func HtmlSpecialChars(str string) string

将特殊字符转换为 HTML 实体,也可使用 html.EscapeString

func HtmlSpecialCharsDecode

func HtmlSpecialCharsDecode(str string) string

将特殊的 HTML 实体转换回普通字符,也可使用 html.UnescapeString

func UrlDecodeStr

func UrlDecodeStr(buf string) string

计算UrlDecode

func UrlEncodeStr

func UrlEncodeStr(buf string) string

计算UrlEncode

func Utf8ToGbk

func Utf8ToGbk(srcBytes []byte) []byte

func Utf8ToGbkStr

func Utf8ToGbkStr(src string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL