Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2021 Changes in this version + const Base10 + const Base12 + const Base16 + const Base2 + const Base32 + const Base36 + const Base8 + var Base30 base30 + var Base50 base50 + var Base62 base62 + var Base94 base94 + var Binary binary + var ErrInvalid = errors.New("invalid") + func Convert(dest Dest, src Source) (int, error) + func Digits(val int64, base Base) (string, error) + func Length(from, to int64, n int) int + func Value(inp string, base Base) (int64, error) + type Alnum int + func (a Alnum) Decode(digit byte) (int64, error) + func (a Alnum) Encode(val int64) (byte, error) + func (a Alnum) N() int64 + type Base interface + Decode func(byte) (int64, error) + Encode func(int64) (byte, error) + N func() int64 + type Buffer struct + func NewBuffer(buf []byte, base Base) *Buffer + func (s *Buffer) Base() int64 + func (s *Buffer) Prepend(val int64) error + func (s *Buffer) Read() (int64, error) + func (s *Buffer) Written() []byte + type Dest interface + Base func() int64 + Prepend func(int64) error + type Source interface + Base func() int64 + Read func() (int64, error) Other modules containing this package github.com/bobg/basexx/v2