Documentation ¶
Overview ¶
Index ¶
- Variables
- type 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StdEncoding = NewEncoding(stdLutSe, true) RawStdEncoding = NewEncoding(stdLutSe, false) URLEncoding = NewEncoding(urlLutSe, true) RawURLEncoding = NewEncoding(urlLutSe, false) )
View Source
var ErrWrongData = errors.New("wrong base64 data")
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct {
// contains filtered or unexported fields
}
func NewEncoding ¶
func (*Encoding) DecodeStringToString ¶
func (*Encoding) DecodedLen ¶
func (*Encoding) EncodeString ¶
func (*Encoding) EncodeStringToString ¶
func (*Encoding) EncodeToBytes ¶
func (*Encoding) EncodeToString ¶
func (*Encoding) EncodedLen ¶
Click to show internal directories.
Click to hide internal directories.