package
0.0.10
Repository: https://github.com/fynxiu/go-common.git
Documentation: pkg.go.dev

# Functions

Decompose returns a set of Snowflake ID parts.
NewSnowflake returns a new Snowflake configured with the given Settings.

# Constants

bit length of machine id.
bit length of sequence number.
bit length of time.

# Structs

Settings configures Snowflake: StartTime is the time since which the Snowflake time is defined as the elapsed time.
Snowflake is a distributed unique ID generator.