uuid used
This commit is contained in:
+4
-2
@@ -13,8 +13,10 @@ import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type UUID string
|
||||
|
||||
const ZeroUUID = "00000000-0000-0000-0000-000000000000"
|
||||
|
||||
func NewUUID() string {
|
||||
return uuid.New().String()
|
||||
func NewUUID() UUID {
|
||||
return UUID(uuid.New().String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user