Documentation ¶
Index ¶
- Variables
- type UUID
- func (u UUID) Bytes() []byte
- func (u UUID) IsZero() bool
- func (u UUID) MarshalBinary() (data []byte, err error)
- func (u UUID) MarshalText() (data []byte, err error)
- func (u *UUID) Scan(src interface{}) error
- func (u UUID) String() string
- func (u *UUID) UnmarshalBinary(data []byte) (err error)
- func (u *UUID) UnmarshalText(text []byte) (err error)
- func (u UUID) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Zero = UUID{}
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [16]byte
swagger:strfmt uuid
func FromBytes ¶
FromBytes returns UUID converted from raw byte slice input. It will return error if the slice isn't 16 bytes long.
func FromString ¶
func (UUID) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (UUID) MarshalText ¶
func (*UUID) Scan ¶
Scan implements the sql.Scanner interface. A 16-byte slice is handled by UnmarshalBinary, while a longer byte slice or a string is handled by UnmarshalText.
func (*UUID) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface. It will return error if the slice isn't 16 bytes long.
func (*UUID) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.