Documentation ¶
Overview ¶
Package uuid is a basic implementation of the version 4 spec of the univeral unique identifier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID []byte
UUID represents a unique identifier conforming to the RFC 4122 standard. UUIDs are a fixed 128bit (16 byte) binary blob.
func Parse ¶
Parse parses a uuidv4 from a given string. valid forms are: - {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
func (UUID) Format ¶
Format allows for conditional expansion in printf statements based on the token and flags used.
func (UUID) IsV4 ¶
IsV4 returns true iff uuid has version number 4, variant number 2, and length 16 bytes
func (UUID) ToFullString ¶
ToFullString returns a "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" hex representation of a uuid.
func (UUID) ToShortString ¶
ToShortString returns a hex representation of the uuid.