Documentation ¶
Overview ¶
Package uuid encodes and decodes UUIDs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firefox ¶
type Firefox struct { ID string // e.g. "addon@example.com" UUID *UUID // e.g. "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" }
Firefox is an ID or UUID and is used by Firefox addons. ID is preferred for display.
func (Firefox) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Firefox) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Firefox) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Firefox) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type UUID ¶
type UUID [16]byte
UUID is a UUID that is formatted as "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" or "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}".
func (*UUID) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*UUID) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*UUID) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*UUID) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.