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:
10
snow_flake/snow_flake_test.go
Normal file
10
snow_flake/snow_flake_test.go
Normal 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())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user