# Functions
AddDate returns the time corresponding to adding the given number of years, months, and days to t.
AddDateP is the pointer version of AddDate().
All returns all combinations for a given string array.
Combinations returns combinations of n elements for a given string array.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Date returns a time.Time value with year, month, day and location only.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Generate generates an Id using the default generator.
No description provided by the author
GetDefault retrieves the default short Id generator initialised with the default alphabet, worker=0 and seed=1.
No description provided by the author
No description provided by the author
gen min<= a <= max.
No description provided by the author
HHMM is equivalent to t.Format(fmt.Sprintf("03%s04", seperator)).
HHMMSS is equivalent to t.Format(fmt.Sprintf("03%s04%s05", seperator, seperator)).
HTTPReq ..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
Pad left-pads s with spaces, to length n.
PadChar left-pads s with the rune r, to length n.
No description provided by the author
No description provided by the author
ProcUpDuration returns a rough duration indecating how long current process has run.
No description provided by the author
No description provided by the author
SetDefault overwrites the default generator.
No description provided by the author
UnixMicro returns Unix timestamp in microseconds.
UnixMilli returns Unix timestamp in milliseconds.
YYMMDD is equivalent to t.Format(fmt.Sprintf("06%s01%s02", seperator, seperator)).
YYYYMMDD is equivalent to t.Format(fmt.Sprintf("2006%s01%s02", seperator, seperator)).
# Constants
DefaultABC is the default URL-friendly alphabet.
Version defined the library version.
# Variables
No description provided by the author
# Structs
Abc represents a shuffled alphabet used to generate the Ids and provides methods to encode data.
No description provided by the author
No description provided by the author
Shortid type represents a short Id generator working with a given alphabet.
No description provided by the author
No description provided by the author