Documentation
¶
Index ¶
- Variables
- func AppendInt(buf []byte, u uint64) []byte
- func Base64(data []byte) []byte
- func Base64Raw(data []byte) []byte
- func Base64RawToString(data []byte) string
- func Base64ToString(data []byte) string
- func DecodeInt(buf []byte) uint64
- func EncodeInt(u uint64) []byte
- func ExchangeInt(buf []byte) []byte
- func FillInt(buf []byte, length int) []byte
- func HashInt(data []byte, key []byte) []byte
- func Hex(data []byte) []byte
- func HexToString(data []byte) string
- func HtmlEscape(data []byte) string
- func HtmlUnescape(data string) string
- func SortJoin(v any, separator, connector string, urlEncode bool) string
- func UnBase64(data []byte) ([]byte, error)
- func UnBase64FromString(data string) ([]byte, error)
- func UnHex(data []byte) ([]byte, error)
- func UnHexFromString(data string) ([]byte, error)
- func UnUrlBase64(data []byte) ([]byte, error)
- func UnUrlBase64FromString(data string) ([]byte, error)
- func UnUrlEncode(data string) ([]byte, error)
- func UrlBase64(data []byte) []byte
- func UrlBase64Raw(data []byte) []byte
- func UrlBase64RawToString(data []byte) string
- func UrlBase64ToString(data []byte) string
- func UrlEncode(data []byte) string
- func Utf8Valid(data []byte) bool
- type IntEncoder
- func (enc *IntEncoder) AppendInt(buf []byte, u uint64) []byte
- func (enc *IntEncoder) DecodeInt(buf []byte) uint64
- func (enc *IntEncoder) EncodeInt(u uint64) []byte
- func (enc *IntEncoder) ExchangeInt(buf []byte) []byte
- func (enc *IntEncoder) FillInt(buf []byte, length int) []byte
- func (enc *IntEncoder) HashInt(data []byte, key []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIntEncoder, _ = NewIntEncoder("9ukH1grX75TQS6LzpFAjIivsdZoO0mc8NBwnyYDhtMWEC2V3KaGxfJRPqe4lbU", 62)
默认编码器实例
View Source
var OrderedIntEncoder, _ = NewIntEncoder("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 62)