Versions in this module Expand all Collapse all v1 v1.2.0 Jan 22, 2024 Changes in this version type Nullable + func (n Nullable[T]) OrElse(defaultVal T) T v1.1.0 Jan 7, 2024 v1.0.1 Dec 28, 2023 v1.0.0 Dec 20, 2023 Changes in this version + var ErrUnsupportedConversion = errors.New("unsupported type conversion") + type Nullable struct + Present bool + Val T + Valid bool + func NewNullable[T any](value T) Nullable[T] + func (n *Nullable[T]) Scan(value interface{}) error + func (n *Nullable[T]) UnmarshalJSON(data []byte) error + func (n Nullable[T]) MarshalJSON() ([]byte, error) + func (n Nullable[T]) Value() (driver.Value, error)