Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2020 Changes in this version + type Option func(*Snowflake) + func WithEpoch(e uint64) Option + func WithIncrimentID(id uint64) Option + func WithProcessID(id uint64) Option + func WithTime(t time.Time) Option + func WithWorkerID(id uint64) Option + type Snowflake struct + IncrimentID uint64 + InternalProcessID uint64 + InternalWorkerID uint64 + Timestamp time.Time + func New() *Snowflake + func NewWithOptions(opts ...Option) *Snowflake + func (S *Snowflake) Unmarshal(value interface{}) error + func (S Snowflake) Int() int + func (S Snowflake) Int64() int64 + func (S Snowflake) String() string + func (S Snowflake) Uint() uint + func (S Snowflake) Uint64() uint64