14 lines
187 B
Go
14 lines
187 B
Go
|
package utils
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestSnowflake(t *testing.T) {
|
||
|
id := Snowflake()
|
||
|
t.Log(id.String())
|
||
|
}
|
||
|
|
||
|
func TestSnowflakeInt64(t *testing.T) {
|
||
|
id := SnowflakeInt64()
|
||
|
t.Log(id)
|
||
|
}
|