package main import ( "fmt" "github.com/google/uuid" "math/rand" "testing" "time" ) func TestUid(t *testing.T) { rand.Seed(time.Now().UnixNano()) for i := 0; i < 10; i++ { if id, err := uuid.NewUUID(); err == nil { fmt.Println(id.String()) } } }