Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateShortID ¶
func GenerateShortID() string
GenerateShortID creates a new 11-character lowercase short ID. It encodes the current microsecond timestamp in Crockford Base32. Thread-safe via mutex to prevent duplicate IDs under concurrency.
func IsShortID ¶
IsShortID checks whether the given string matches short ID lengths (11 or 21 chars).
func NormalizeID ¶
NormalizeID normalizes an ID to lowercase for consistent lookups.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.