🚛 first commit

This commit is contained in:
Godruoyi
2021-04-15 11:04:49 +08:00
commit 0f43462de3
11 changed files with 737 additions and 0 deletions

14
privateip_test.go Normal file
View File

@@ -0,0 +1,14 @@
package snowflake_test
import (
"testing"
"github.com/godruoyi/go-snowflake"
)
func TestPrivateIPToMachineID(t *testing.T) {
mid := snowflake.PrivateIPToMachineID()
if mid <= 0 {
t.Error("MachineID should be > 0")
}
}