Documentation
¶
Index ¶
- type JSON
- func (j JSON[T]) Get() T
- func (j JSON[T]) MarshalJSON() ([]byte, error)
- func (j JSON[T]) MarshalText() ([]byte, error)
- func (j *JSON[T]) Scan(value interface{}) error
- func (j *JSON[T]) UnmarshalJSON(data []byte) error
- func (j *JSON[T]) UnmarshalText(text []byte) error
- func (j JSON[T]) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON[T any] struct { // contains filtered or unexported fields }
func (JSON[T]) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (JSON[T]) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*JSON[T]) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*JSON[T]) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.