package
0.0.0-20211208044104-4e2ed600e4cf
Repository: https://github.com/fabletang/gomybatis2.git
Documentation: pkg.go.dev
# README
id package,推荐使用雪花算法,以获取分布式的id并且是稠密索引id
- snowflake clone from github https://github.com/bwmarrin/snowflake
how to use it
n, _ := NewNode(0)
id := n.Generate()
fmt.Println(id)