Versions in this module Expand all Collapse all v0 v0.0.1 Jul 22, 2021 Changes in this version + const BitLenMachineID + const BitLenSequence + const BitLenTime + func Decompose(id uint64) map[string]uint64 + type Settings struct + CheckMachineID func(uint16) bool + MachineID func() (uint16, error) + StartTime time.Time + type Sonyflake struct + func NewSonyflake(st Settings) *Sonyflake + func (sf *Sonyflake) NextID() (uint64, error)