Documentation ¶ Index ¶ func NewUUID() uuid.UUID func Sanitize(id string, permitLeadingDigits bool, reserved ...string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewUUID ¶ func NewUUID() uuid.UUID NewUUID creates a new UUID. func Sanitize ¶ func Sanitize(id string, permitLeadingDigits bool, reserved ...string) string Sanitize ensures the ID is not empty and consists of only lowercase alphanumeric characters. If permitLeadingDigits is false, then leading digits are stripped. A list of reserved values can be passed in to disallow specific IDs. Types ¶ This section is empty. Source Files ¶ View all Source files sanitize.go uuid.go Click to show internal directories. Click to hide internal directories.