util/id: add uuid helper func
Some checks failed
lint / lint (pull_request) Successful in 1m26s
test / test (pull_request) Successful in 4m2s
coverage / build (pull_request) Failing after 9m29s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-12-23 10:59:29 +03:00
parent 0f8f93d09a
commit ed30c26324
2 changed files with 15 additions and 1 deletions

View File

@@ -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
}