Documentation ¶
Overview ¶
Package uuid generates and parses UUIDs. A simple API is exposed while the implemenation is provided by github.com/google/uuid
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Nil = UUID(uuid.Nil)
Nil represents an invalid or empty UUID.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
UUID is a 16 byte (128 bit) id, and can be used as a map key and in direct comparisons.
func Parse ¶
Parse an UUID of the forms "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" and "urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".
func ParseBytes ¶
Parse an UUID of the forms "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" and "urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" represented as a byte slice.
func (UUID) MarshalBinary ¶
func (UUID) MarshalText ¶
func (*UUID) UnmarshalBinary ¶
func (*UUID) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.