Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UUID ¶
type UUID [16]byte
A UUID is a 16 byte Universally Unqiue Identifier as defined in RFC4122.
func Must ¶
func Must() UUID
Must behaves the same as New, but catches any errors that occur and panics. This simplifies declaration and initlization.
func Parse ¶
Parse decodes string s into a UUID or returns an error. It currently only supports UUIDs in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
func (UUID) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*UUID) Scan ¶
Scan implements the sql.Scanner interface so that UUIDs can be read from databases so support SQL operations.
func (UUID) String ¶
String implements the Stringer interface and returns the UUID in the form of: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
func (*UUID) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.