Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAlphabet = "23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
DefaultAlphabet is the default alphabet used.
Variables ¶
View Source
var DefaultEncoder = &base57{newAlphabet(DefaultAlphabet)}
DefaultEncoder is the default encoder uses when generating new UUIDs, and is based on Base57.
Functions ¶
func NewWithAlphabet ¶
NewWithAlphabet returns a new UUIDv4, encoded with base57 using the alternative alphabet abc.
func NewWithEncoder ¶
NewWithEncoder returns a new UUIDv4, encoded with enc.
func NewWithNamespace ¶
NewWithNamespace returns a new UUIDv5 (or v4 if name is empty), encoded with base57.
Types ¶
Click to show internal directories.
Click to hide internal directories.