Documentation ¶
Index ¶
- func Base64Decode(bs []byte) ([]byte, error)
- func Base64DecodeFromString(s string) ([]byte, error)
- func Base64Encode(src []byte) []byte
- func Base64EncodeToString(src []byte) string
- func BytesToString(b []byte) string
- func HexDecode(bs []byte) (dst []byte, err error)
- func HexDecodeFromString(s string) (bs []byte, err error)
- func HexEncode(src []byte) []byte
- func HexEncodeToString(src []byte) string
- func StringToBytes(s string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
Base64Decode decode base64 of []byte
func Base64DecodeFromString ¶
Base64DecodeFromString decode base64 of string minimal use of copy
func Base64EncodeToString ¶
Base64EncodeToString encode base64 to string minimal use of copy
func BytesToString ¶
BytesToString converts byte slice to string without a memory allocation.
func HexDecodeFromString ¶
HexDecodeFromString decode hex from string
func HexEncodeToString ¶
HexEncodeToString encode hex to string
func StringToBytes ¶
StringToBytes converts string to byte slice without a memory allocation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.