Documentation ¶
Index ¶
Constants ¶
View Source
const Base62 uint64 = 62
Base62 represents the base62 const.
Variables ¶
View Source
var ( // Base62 character set, [A-Za-z0-9]. https://tools.ietf.org/html/rfc4648 // We follow the orders similar to base64. // Note that there are several different variants in the web, such as // [0-9a-zA-Z] or [a-zA-Z0-9] and so on. DEFAULT_CHARS = [Base62]rune{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', } )
Functions ¶
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory allows the creation of new base62 encoder/decoder with different variant of characters.
Click to show internal directories.
Click to hide internal directories.