1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00

snow flake

This commit is contained in:
2022-06-22 10:45:00 +08:00
parent 1eeed34adf
commit ed9a684933
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,10 @@
package snowflake
import "testing"
func TestGetId(t *testing.T) {
s := CreateSnowflake(22)
for i := 0; i < 100; i++ {
t.Log(s.GetId())
}
}