Documentation
¶
Index ¶
- type Field
- func (i *Field[T]) Get() (T, bool)
- func (i *Field[T]) If(fn func(T))
- func (i *Field[T]) MarshalJSON() ([]byte, error)
- func (i *Field[T]) MustGet() T
- func (i *Field[T]) OrElse(v T) T
- func (i *Field[T]) Present() bool
- func (i *Field[T]) Set(v T)
- func (i *Field[T]) ToPtr() *T
- func (i *Field[T]) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field[T any] struct { // contains filtered or unexported fields }
func NewFieldFromPtr ¶
func (*Field[T]) MarshalJSON ¶
func (*Field[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.