Versions in this module Expand all Collapse all v0 v0.1.3 Aug 19, 2023 Changes in this version + var ErrWrongData = errors.New("wrong base64 data") + var RawStdEncoding = NewEncoding(stdLutSe, false) + var RawURLEncoding = NewEncoding(urlLutSe, false) + var StdEncoding = NewEncoding(stdLutSe, true) + var URLEncoding = NewEncoding(urlLutSe, true) + type Encoding struct + func NewEncoding(lutSe [64]byte, pad bool) *Encoding + func (e *Encoding) Decode(dst []byte, src []byte) (int, error) + func (e *Encoding) DecodeString(src string) ([]byte, error) + func (e *Encoding) DecodeStringToString(src string) (string, error) + func (e *Encoding) DecodeToBytes(src []byte) ([]byte, error) + func (e *Encoding) DecodeToString(src []byte) (string, error) + func (e *Encoding) DecodedLen(n int) int + func (e *Encoding) Encode(dst []byte, src []byte) + func (e *Encoding) EncodeString(src string) []byte + func (e *Encoding) EncodeStringToString(src string) string + func (e *Encoding) EncodeToBytes(src []byte) []byte + func (e *Encoding) EncodeToString(src []byte) string + func (e *Encoding) EncodedLen(n int) int