Documentation ¶
Index ¶
- type Null
- func (t Null[T]) Get() (T, bool)
- func (t Null[T]) IsNull() bool
- func (t Null[T]) IsUndefined() bool
- func (t Null[T]) MarshalJSON() ([]byte, error)
- func (t Null[T]) MustGet() T
- func (t *Null[T]) Scan(value any) error
- func (t *Null[T]) Set(val T)
- func (t *Null[T]) SetNull()
- func (t *Null[T]) SetUndefined()
- func (t *Null[T]) UnmarshalJSON(data []byte) error
- func (t Null[T]) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Null ¶
type Null[T any] []*T
Null 0 has -> 有值 Value 0 nil -> 值为 Null len 0 -> 未定义值 Undefined
func (Null[T]) MarshalJSON ¶
func (*Null[T]) SetUndefined ¶
func (t *Null[T]) SetUndefined()
func (*Null[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.