Documentation ¶
Overview ¶
Package gbase64 provides useful API for BASE64 encoding/decoding algorithm.
Index ¶
- func Decode(dst []byte) ([]byte, error)
- func DecodeString(str string) ([]byte, error)
- func DecodeToString(str 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
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.