package base64

Import Path
	encoding/base64 (on golang.org and go.dev)

Dependency Relation
	imports 3 packages, and imported by 6 packages

Involved Source Files
	d-> base64.go

Exported Type Names

type CorruptInputError int64 (T) Error() string T : error
type Encoding (struct) An Encoding is a radix 64 encoding/decoding scheme, defined by a 64-character alphabet. The most common encoding is the "base64" encoding defined in RFC 4648 and used in MIME (RFC 2045) and PEM (RFC 1421). RFC 4648 also defines an alternate encoding, which is the standard encoding with - and _ substituted for + and /. (*T) Decode(dst, src []byte) (n int, err error) (*T) DecodeString(s string) ([]byte, error) (*T) DecodedLen(n int) int (*T) Encode(dst, src []byte) (*T) EncodeToString(src []byte) string (*T) EncodedLen(n int) int (T) Strict() *Encoding (T) WithPadding(padding rune) *Encoding func NewEncoding(encoder string) *Encoding func Encoding.Strict() *Encoding func Encoding.WithPadding(padding rune) *Encoding func NewDecoder(enc *Encoding, r io.Reader) io.Reader func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser var RawStdEncoding *Encoding var RawURLEncoding *Encoding var StdEncoding *Encoding var URLEncoding *Encoding
Exported Values
func NewDecoder(enc *Encoding, r io.Reader) io.Reader NewDecoder constructs a new base64 stream decoder.
func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser NewEncoder returns a new base64 stream encoder. Data written to the returned writer will be encoded using enc and then written to w. Base64 encodings operate in 4-byte blocks; when finished writing, the caller must Close the returned encoder to flush any partially written blocks.
func NewEncoding(encoder string) *Encoding NewEncoding returns a new padded Encoding defined by the given alphabet, which must be a 64-byte string that does not contain the padding character or CR / LF ('\r', '\n'). The resulting Encoding uses the default padding character ('='), which may be changed or disabled via WithPadding.
const NoPadding rune = -1 // No padding
var RawStdEncoding *Encoding RawStdEncoding is the standard raw, unpadded base64 encoding, as defined in RFC 4648 section 3.2. This is the same as StdEncoding but omits padding characters.
var RawURLEncoding *Encoding RawURLEncoding is the unpadded alternate base64 encoding defined in RFC 4648. It is typically used in URLs and file names. This is the same as URLEncoding but omits padding characters.
var StdEncoding *Encoding StdEncoding is the standard base64 encoding, as defined in RFC 4648.
const StdPadding rune = 61 // Standard padding character
var URLEncoding *Encoding URLEncoding is the alternate base64 encoding defined in RFC 4648. It is typically used in URLs and file names.