Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() string
New returns a 13-character unique ID based on the current timestamp and an atomic counter.
func NewWithEntropy ¶
func NewWithEntropy() string
NewWithEntropy returns a 23-character unique ID with additional random entropy.
func NewWithPrefix ¶
NewWithPrefix returns a unique ID prefixed with the given string.
func NewWithPrefixAndEntropy ¶
NewWithPrefixAndEntropy returns a unique ID with a prefix and additional random entropy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.