Versions in this module Expand all Collapse all v1 v1.6.0 Apr 5, 2025 v1.4.0 Oct 6, 2024 Changes in this version + var ErrGen = errors.New("lal.snowflake: gen error") + var ErrInitial = errors.New("lal.snowflake: initial error") + type ModOption func(option *Option) + type Node struct + func New(dataCenterId int, workerId int, modOptions ...ModOption) (*Node, error) + func (n *Node) Gen(nowUnixMs ...int64) (int64, error) + type Option struct + AlwaysPositive bool + DataCenterIdBits int + SequenceBits int + Twepoch int64 + WorkerIdBits int