Documentation ¶
Overview ¶
Package base64 提供原生包 base64 的简单扩展封装
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding interface { Decode(dst, src []byte) (n int, err error) DecodeString(s string) ([]byte, error) DecodedLen(n int) int Encode(dst, src []byte) EncodeToString(src []byte) string EncodedLen(n int) int }
Encoding 表示 base64 Encoder
var StdEncoding Encoding = stdEncodeDecoder{}
StdEncoding 大致等同于 encoding/base64.StdEncoder, 不同的是在 Decode 的时候, 会自动补齐 padding
Click to show internal directories.
Click to hide internal directories.