Documentation ¶
Overview ¶
Package gbase64 provides useful API for BASE64 encoding/decoding algorithm.
Index ¶
- func Decode(data []byte) ([]byte, error)
- func DecodeString(data string) ([]byte, error)
- func DecodeToString(data string) (string, error)
- func Encode(src []byte) []byte
- func EncodeFile(path string) ([]byte, error)
- func EncodeFileToString(path string) (string, error)
- func EncodeString(src string) string
- func EncodeToString(src []byte) string
- func MustDecode(data []byte) []byte
- func MustDecodeString(data string) []byte
- func MustDecodeToString(data string) string
- func MustEncodeFile(path string) []byte
- func MustEncodeFileToString(path string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
DecodeString decodes string with BASE64 algorithm.
func DecodeToString ¶ added in v1.9.4
DecodeString decodes string with BASE64 algorithm.
func EncodeFile ¶ added in v1.10.0
EncryptFile encodes file content of <path> using BASE64 algorithms.
func EncodeFileToString ¶ added in v1.10.0
EncodeFileToString encodes file content of <path> to string using BASE64 algorithms.
func EncodeString ¶
EncodeString encodes string with BASE64 algorithm.
func EncodeToString ¶ added in v1.9.4
EncodeToString encodes bytes to string with BASE64 algorithm.
func MustDecode ¶ added in v1.10.1
MustDecode decodes bytes with BASE64 algorithm. It panics if any error occurs.
func MustDecodeString ¶ added in v1.10.1
MustDecodeString decodes string with BASE64 algorithm. It panics if any error occurs.
func MustDecodeToString ¶ added in v1.10.1
MustDecodeToString decodes string with BASE64 algorithm. It panics if any error occurs.
func MustEncodeFile ¶ added in v1.10.1
MustEncodeFile encodes file content of <path> using BASE64 algorithms. It panics if any error occurs.
func MustEncodeFileToString ¶ added in v1.10.1
MustEncodeFileToString encodes file content of <path> to string using BASE64 algorithms. It panics if any error occurs.
Types ¶
This section is empty.