Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UUIDSnippet = block1 + "-" + block2 + "-" + block3 + "-" + block4 + "-" + block5
)
regex for validating that the UUID matches RFC 4122. This package generates version 4 UUIDs but accepts any UUID version. http://www.ietf.org/rfc/rfc4122.txt
Functions ¶
func IsValidUUIDString ¶
IsValidUUIDString returns true, if the given string matches a valid UUID (version 4, variant 2).
Types ¶
type UUID ¶
type UUID [16]byte
UUID represent a universal identifier with 16 octets.
func MustNewUUID ¶
func MustNewUUID() UUID
MustNewUUID returns a new uuid, if an error occurs it panics.
func UUIDFromString ¶
Click to show internal directories.
Click to hide internal directories.