Vasiliy Tolstov
664b1586af
All checks were successful
test / test (push) Successful in 3m25s
* util/id: add ability to specify what kind of id generate (nanoid/uuid v8) * logger/slog: write stacktrace always on fatal * logger/slog: try to close Out and sleep 1s Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> Reviewed-on: #382 Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org> Co-committed-by: Vasiliy Tolstov <v.tolstov@unistack.org>
12 lines
141 B
Go
12 lines
141 B
Go
package id
|
|
|
|
import "testing"
|
|
|
|
func TestUUIDv8(t *testing.T) {
|
|
id, err := New()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Logf("xxx %s\n", id)
|
|
}
|