Versions in this module Expand all Collapse all v0 v0.1.8 Sep 1, 2023 v0.1.7 Sep 1, 2023 Changes in this version + var Base58 = NewEncoding(base58Alphabet) + var Base62 = NewEncoding(base62Alphabet) + type Encoding struct + func NewEncoding(alphabet string) *Encoding + func (enc *Encoding) Base() int + func (enc *Encoding) DecodeString(s string) ([]byte, error) + func (enc *Encoding) DecodeStringN(s string, n int) ([]byte, error) + func (enc *Encoding) EncodeToString(b []byte) string + func (enc *Encoding) MustRandom(n int) string + func (enc *Encoding) Random(n int) (string, error)