You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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()) |
|
} |
|
} |
|
}
|
|
|