Versions in this module Expand all Collapse all v1 v1.0.4 Feb 8, 2022 Changes in this version type Snowflake + func ParseString(str fmt.Stringer) Snowflake v1.0.3 Jan 24, 2022 Changes in this version type Snowflake + func ParseInt64(i int64) Snowflake + func ParseUInt64(i uint64) Snowflake v1.0.2 Jan 24, 2022 Changes in this version type Snowflake + func ParseSnowflake(i int64) Snowflake v1.0.1 Jan 23, 2022 Changes in this version type Snowflake + func GetSnowflakeEnv(key string) Snowflake v1.0.0 Jan 23, 2022 Changes in this version + var Epoch int64 = 1420070400000 + type DeconstructedSnowflake struct + Increment int64 + ProcessID int64 + Time time.Time + WorkerID int64 + type Snowflake string + func NewSnowflake(timestamp time.Time) Snowflake + func NewSnowflakeEnv(key string) Snowflake + func (s Snowflake) Deconstruct() DeconstructedSnowflake + func (s Snowflake) Int64() int64 + func (s Snowflake) String() string + func (s Snowflake) Time() time.Time