Documentation ¶
Overview ¶
Package uuid can be used to generate 128 bit UUIDs compatible with rfc4122. Currently, only version 4 UUIDs, UUIDs generated from random data, can be created. The package includes functions for generating UUIDs and for converting them to and from strings.
Index ¶
Constants ¶
View Source
const UUIDRegex = "[a-fA-F0-9]{8}-?[a-fA-F0-9]{4}-?4[a-fA-F0-9]{3}-?[8|9|aA|bB][a-fA-F0-9]{3}-?[a-fA-F0-9]{12}"
UUIDRegex defines a pattern for validating UUIDs
Variables ¶
View Source
var ( // ErrUUIDInvalid indicates that a UIID is invalid. Currently, // returned by uuid.Parse if the string passed to this function // does not contain a valid UUID. ErrUUIDInvalid = errors.New("invalid uuid") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.