Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NamespaceDNS = Must(Parse("6ba7b810-9dad-11d1-80b4-00c04fd430c8")) NamespaceURL = Must(Parse("6ba7b811-9dad-11d1-80b4-00c04fd430c8")) NamespaceOID = Must(Parse("6ba7b812-9dad-11d1-80b4-00c04fd430c8")) NamespaceX500 = Must(Parse("6ba7b814-9dad-11d1-80b4-00c04fd430c8")) )
View Source
var (
Nil = UUID{}
)
Functions ¶
Types ¶
type UUID ¶
type UUID [16]byte
The UUID represents a Universally Unique Identifier.
func (UUID) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface. The encoding is the same as returned by String.
func (UUID) String ¶
Returns canonical string representation of UUID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
func (*UUID) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. Following formats are supported: "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "{6ba7b810-9dad-11d1-80b4-00c04fd430c8}", "urn:uuid:6ba7b810-9dad-11d1-80b4-00c04fd430c8"
Click to show internal directories.
Click to hide internal directories.