Documentation ¶
Index ¶
- func FromDashless(dashless string) (uuid.UUID, error)
- func FromString(s string) (uuid.UUID, error)
- func FromStringSlice(s []string) ([]uuid.UUID, error)
- func New() (uuid.UUID, error)
- func ToDashless(id uuid.UUID) (string, error)
- func Validate(s string) error
- func ValidateDashless(dashless string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDashless ¶
FromDashless returns the dashless uuid with dashes.
func FromString ¶
FromString returns the uuid from the string.
As opposed to uuid.FromString, this only accepts uuids with dashes. Always use this instead of uuid.FromString.
func FromStringSlice ¶
FromStringSlice returns a slice of uuids from the string slice.
This only accepts uuids with dashes.
func ToDashless ¶
ToDashless returns the uuid without dashes.
func ValidateDashless ¶
ValidateDashless validates the dashless uuid is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.