Releases: fish-tennis/snowflake
Releases · fish-tennis/snowflake
v1.0.1
v1.0.0
snowflake
an implement of snowflake by go, use atomic instead of mutex
雪花算法的一种go实现,使用原子锁(atomic),取代互斥锁(mutex)
usage
workerId := uint16(123)
snowFlake := NewSnowFlake(workerId)
theUniqueId := snowFlake.NextId()