Documentation ¶
Overview ¶
Package gbase64 提供了用于 BASE64 编码/解码算法的有用 API。
Index ¶
- func X字节集编码(字节集 []byte) []byte
- func X字节集编码到文本(字节集 []byte) string
- func X字节集解码(字节集 []byte) ([]byte, error)
- func X字节集解码PANI(字节集 []byte) []byte
- func X文件编码到字节集(文件路径 string) ([]byte, error)
- func X文件编码到字节集PANI(文件路径 string) []byte
- func X文件编码到文本(文件路径 string) (string, error)
- func X文件编码到文本PANI(文件路径 string) string
- func X文本编码(文本 string) string
- func X文本解码(文本 string) (string, error)
- func X文本解码PANI(文本 string) string
- func X文本解码到字节集(文本 string) ([]byte, error)
- func X文本解码到字节集PANI(文本 string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func X文件编码到字节集PANI ¶
MustEncodeFile 使用BASE64算法对`path`指定文件的内容进行编码。 如果出现任何错误,将会导致panic。
func X文件编码到文本PANI ¶
MustEncodeFileToString 使用BASE64算法将`path`指定文件的内容编码为字符串。 如果发生任何错误,它将会引发panic。
func X文本解码到字节集PANI ¶
MustDecodeString 使用BASE64算法解码字符串。 如果发生任何错误,它会引发panic。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.