Versions in this module Expand all Collapse all v1 v1.0.2 Aug 4, 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) v1.0.1 Aug 4, 2021