Documentation ¶
Index ¶
- type NullUUID
- func (u NullUUID) IsNull() bool
- func (u NullUUID) IsZero() bool
- func (u NullUUID) MarshalText() ([]byte, error)
- func (u *NullUUID) ReadBytes(str []byte) error
- func (u *NullUUID) Scan(val interface{}) error
- func (u *NullUUID) SetNull()
- func (u *NullUUID) SetString(str string) error
- func (u *NullUUID) SetZero()
- func (u NullUUID) String() string
- func (u *NullUUID) UnmarshalText(text []byte) error
- func (u NullUUID) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullUUID ¶
NullUUID is a api.UUID that handles IsZero as a db NULL value, and as an empty string (or null) in (un)marshalText
func FromString ¶
FromString initialize a NullUUID from a string
func MustFromBytes ¶
MustFromBytes initialize a NullUUID from a []byte and panics if it cannot
func MustFromString ¶
MustFromString initialize a NullUUID from a string and panics if it cannot
func (NullUUID) MarshalText ¶
MarshalText returns the stringified UUID, or an empty slice if the value is Null/Zero
func (*NullUUID) UnmarshalText ¶
UnmarshalText returns the stringified UUID, or nil if the value is Null/Zero
Click to show internal directories.
Click to hide internal directories.