Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [16]byte
UUID (universally unique identifier) is a 128-bit number used to identify information in computer systems as defined in RFC 4122.
func FromBytes ¶ added in v1.2.0
FromBytes creates a new UUID from a byte slice. Returns an error if the slice does not have a length of 16. The bytes are copied from the slice.
func (UUID) MarshalBinary ¶ added in v1.2.0
MarshalBinary implements encoding.BinaryMarshaler.
func (UUID) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (UUID) String ¶
String returns uuid string representation "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" or "" if uuid is invalid.
func (*UUID) UnmarshalBinary ¶ added in v1.2.0
UnmarshalBinary implements encoding.BinaryUnmarshaler.
func (*UUID) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.