util/id: add uuid helper func
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -7,5 +7,14 @@ func TestUUIDv8(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Logf("xxx %s\n", id)
|
||||
_ = id
|
||||
}
|
||||
|
||||
func TestToUUID(t *testing.T) {
|
||||
id, err := New()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
u := ToUUID(id)
|
||||
_ = u
|
||||
}
|
||||
|
Reference in New Issue
Block a user