Documentation
¶
Index ¶
- type UUID
- func (uuid UUID) MarshalBinary() ([]byte, error)
- func (uuid UUID) MarshalText() ([]byte, error)
- func (uuid UUID) String() string
- func (uuid UUID) Timestamp() time.Time
- func (uuid *UUID) UnmarshalBinary(data []byte) error
- func (uuid *UUID) UnmarshalText(data []byte) error
- func (uuid UUID) Version() Version
- type UUIDs
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [16]byte
func FromBytes ¶
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 ParseBytes ¶
ParseBytes is like Parse, except it parses a byte slice instead of a string.
func (UUID) MarshalBinary ¶
MarshalBinary implements encoding.BinaryUnmarshaler.
func (UUID) MarshalText ¶
MarshalText implements encoding.TextUnmarshaler.
func (*UUID) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
func (*UUID) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.