Documentation ¶
Overview ¶
Package sortablebase64 contains routines for encoding text in a variant of base64. This variant has the useful property that encodings of numeric values retain their ordering under lexicographic (ASCII) sort as the values do under numeric sort.
Index ¶
Constants ¶
View Source
const Alphabet = "0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"
Alphabet is an ordered list of characters used in sortablebase64 encoding. The order is drawn from the placement of these characters in the ASCII table.
Variables ¶
This section is empty.
Functions ¶
func DecodeUint64 ¶
DecodeUint64 returns a uint64 representing the sortablebase64-encoded string s, or an error.
func EncodeUint64 ¶
EncodeUint64 returns a string representing n in sortablebase64.
The returned string is always 11 bytes in length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.