Documentation ¶
Index ¶
- type Nullable
- func (n Nullable[T]) Equal(other Nullable[T]) bool
- func (n Nullable[T]) ExactEqual(other Nullable[T]) bool
- func (n Nullable[T]) GoString() string
- func (n Nullable[T]) IsZero() bool
- func (n Nullable[T]) MarshalJSON() ([]byte, error)
- func (n Nullable[T]) MarshalText() ([]byte, error)
- func (n *Nullable[T]) Scan(value any) error
- func (n Nullable[T]) String() string
- func (n *Nullable[T]) UnmarshalJSON(data []byte) error
- func (n *Nullable[T]) UnmarshalText(text []byte) error
- func (n Nullable[T]) Value() (driver.Value, error)
- func (n Nullable[T]) ValueOrZero() T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nullable ¶
Nullable represents data that also can be NULL
func ValueFromPointer ¶ added in v0.1.2
ValueFromPointer Create a Nullable from a pointer
func (Nullable[T]) ExactEqual ¶
ExactEqual Check if this Nullable is exact equal to another Nullable, never using intern Equal method to check equality
func (Nullable[T]) MarshalJSON ¶
func (Nullable[T]) MarshalText ¶
func (*Nullable[T]) UnmarshalJSON ¶
func (*Nullable[T]) UnmarshalText ¶
func (Nullable[T]) ValueOrZero ¶
func (n Nullable[T]) ValueOrZero() T
ValueOrZero Get Value, or default zero value if it is NULL
Click to show internal directories.
Click to hide internal directories.