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 ¶
DecodeString decodes string with BASE64 algorithm.
func EncodeFile ¶
EncryptFile encodes file content of <path> using BASE64 algorithms.
func EncodeFileToString ¶
EncodeFileToString encodes file content of <path> to string using BASE64 algorithms.
func EncodeString ¶
EncodeString encodes string with BASE64 algorithm.
func EncodeToString ¶
EncodeToString encodes bytes to string with BASE64 algorithm.
func MustDecode ¶
MustDecode decodes bytes with BASE64 algorithm. It panics if any error occurs.
func MustDecodeString ¶
MustDecodeString decodes string with BASE64 algorithm. It panics if any error occurs.
func MustDecodeToString ¶
MustDecodeToString decodes string with BASE64 algorithm. It panics if any error occurs.
func MustEncodeFile ¶
MustEncodeFile encodes file content of <path> using BASE64 algorithms. It panics if any error occurs.
func MustEncodeFileToString ¶
MustEncodeFileToString encodes file content of <path> to string using BASE64 algorithms. It panics if any error occurs.
Types ¶
This section is empty.