package
1.1.8
Repository: https://github.com/pengcainiao/zero.git
Documentation: pkg.go.dev

# Functions

Decompose 将雪花ID解析为多个部分.
ElapsedSeconds 消息从生成到当前时间所经过的时间.
GenerateID 创建分布式ID.
No description provided by the author
NewSonyflake returns a new Sonyflake configured with the given Settings.

# Constants

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

# Structs

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