Documentation
¶
Index ¶
- type State
- type Value
- func (v Value[T]) AsPointer() *T
- func (v Value[T]) Filled() bool
- func (v Value[T]) Get() (_ T, _ bool)
- func (v Value[T]) GetOr(fallback T) T
- func (v Value[T]) GetOrZero() (_ T)
- func (v Value[T]) IsZero() bool
- func (v Value[T]) MarshalJSON() ([]byte, error)
- func (v Value[T]) Nil() bool
- func (v Value[T]) Present() bool
- func (v *Value[T]) Scan(src any) error
- func (v Value[T]) State() State
- func (v *Value[T]) UnmarshalJSON(data []byte) (err error)
- func (v Value[T]) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value[T any] struct { // contains filtered or unexported fields }
func (Value[T]) MarshalJSON ¶
func (*Value[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.