github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/metadata/mdkey/generator_test.go (about) 1 package mdkey 2 3 import ( 4 "testing" 5 ) 6 7 func TestRandom(t *testing.T) { 8 id := RandomIDGenerator.RequestID() 9 t.Logf("random request id is: %s", id) 10 } 11 12 func TestUUID(t *testing.T) { 13 id := UUIDGenerator.RequestID() 14 t.Logf("uuid request id is: %s", id) 15 }