Go library to encode and decode byte streams to a base62 encoding.a
Roughly based on parts of A Secure, Lossless, and Compressed Base62 Encoding, the encoding scheme does not use the traditional approach requiring a lot of modulo math and is therefore considerably more efficient with minimal loss in compression (~0.28%).
Base62 is an encoding that is mostly associated with URL shorteners. It is much like the widely used Base64 encoding, but constrains the character set to just the 62 alphanumeric characters.
Installation & Use
go get github.com/kellegous/base62
The encoder and decoder have APIs very similar to the one used by most Go encoding libraries (including base64).