package
0.0.0-20240930111939-8d08343a7663
Repository: https://github.com/diycoder/elf.git
Documentation: pkg.go.dev
# Functions
Generate generates an Id using the default generator.
GetDefault retrieves the default short Id generator initialised with the default alphabet, worker=0 and seed=1.
MustGenerate acts just like Generate, but panics instead of returning errors.
MustNew acts just like New, but panics instead of returning errors.
MustNewAbc acts just like NewAbc, but panics instead of returning errors.
New constructs an instance of the short Id generator for the given worker number [0,31], alphabet (64 unique symbols) and seed value (to shuffle the alphabet).
NewAbc constructs a new instance of shuffled alphabet to be used for Id representation.
SetDefault overwrites the default generator.
# Constants
DefaultABC is the default URL-friendly alphabet.
Version defined the library version.