Versions in this module Expand all Collapse all v1 v1.0.2 Sep 27, 2023 v1.0.1 May 23, 2023 Changes in this version + const BitLenMachineID + const BitLenSequence + const BitLenTime + func Decompose(id uint64) map[string]uint64 + func GetId() uint64 + type Settings struct + CheckMachineID func(uint16) bool + MachineID func() (uint16, error) + StartTime time.Time + type Snowflake struct + func GetSnowflake() *Snowflake + func NewSnowflake(st Settings) *Snowflake + func (sf *Snowflake) NextID() (uint64, error)