Documentation ¶
Index ¶
- Variables
- func IsEmpty(id string) bool
- func NewSafeUUID() (r string)
- func NewUUID() string
- func NewUUIDWithName(name string) string
- func NoDashUUID(id string) string
- func ToUUID(id string) string
- func Valid(id string) (result bool)
- func ValidNoDash(id string) (result bool)
- func ValidNoEmpty(id string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var EMPTY, _ = uuid.Parse("00000000-0000-0000-0000-000000000000")
Functions ¶
func NewUUIDWithName ¶
NewUUIDWithName returns UUID based on SHA-1 hash of namespace UUID and name.
func ValidNoDash ¶
ValidNoDash returns true if valid UUID that no dash and not equal empty.
func ValidNoEmpty ¶
ValidNoEmpty returns true if valid UUID and not equal empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.