Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultEpoch = time.Date(2020, 10, 1, 0, 0, 0, 0, time.Local)
)
Functions ¶
Types ¶
type Snowflake ¶ added in v0.3.15
var ( // Node 生成ID的节点 // 为了帮助保证唯一性 // - 确保您的系统保持准确的系统时间 // - 确保您永远不会有多个节点以相同的节点 ID 运行 Node Snowflake )
func NewBwmarrinSnowflake ¶ added in v0.3.15
func NewSonySonyflake ¶ added in v0.3.15
Click to show internal directories.
Click to hide internal directories.