Documentation
¶
Overview ¶
Package snowflake provides a unique ID generator based on the Twitter Snowflake algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() identifier.Generator
New creates a new Snowflake generator with a random node ID. It panics if node creation fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.