Documentation ¶
Overview ¶
Package base62 implements base62 encoding, fork from https://github.com/yihleego/base62
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidAlphabetError = func() error { return fmt.Errorf("base62: invalid alphabet, the alphabet length must be 62") }
View Source
var StdAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
View Source
var StdEncoding = NewEncoding(StdAlphabet)
StdEncoding is the standard base62 encoding.
Functions ¶
This section is empty.
Types ¶
type CorruptInputError ¶
type CorruptInputError int64
func (CorruptInputError) Error ¶
func (e CorruptInputError) Error() string
type Encoding ¶
type Encoding struct { Error error // contains filtered or unexported fields }
An Encoding is a radix 62 encoding/decoding scheme, defined by a 62-character alphabet.
func NewEncoding ¶ added in v1.0.1
NewEncoding returns a new padded Encoding defined by the given alphabet, which must be a 62-byte string that does not contain the padding character or CR / LF ('\r', '\n').
Click to show internal directories.
Click to hide internal directories.