Documentation ¶ Index ¶ type Bool type Bytes type Float32 type Float64 type Int64 type JSON type Null func FromPtr[T any](v *T) Null[T] func New[T any](v T) Null[T] func (n Null[T]) MarshalJSON() ([]byte, error) func (n Null[T]) Ptr() *T type Nuller type String type Time type Uint64 Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Bool ¶ type Bool = Null[bool] type Bytes ¶ type Bytes = Null[[]byte] type Float32 ¶ type Float32 = Null[float32] type Float64 ¶ type Float64 = Null[float64] type Int64 ¶ type Int64 = Null[int64] type JSON ¶ type JSON = Null[json.RawMessage] type Null ¶ type Null[T any] struct { sql.Null[T] } func FromPtr ¶ func FromPtr[T any](v *T) Null[T] func New ¶ func New[T any](v T) Null[T] func (Null[T]) MarshalJSON ¶ func (n Null[T]) MarshalJSON() ([]byte, error) MarshalJSON implements json.Marshaler. func (Null[T]) Ptr ¶ func (n Null[T]) Ptr() *T type Nuller ¶ type Nuller interface { sql.Scanner driver.Valuer json.Marshaler } type String ¶ type String = Null[string] type Time ¶ type Time = Null[time.Time] type Uint64 ¶ type Uint64 = Null[uint64] Source Files ¶ View all Source files null.go Click to show internal directories. Click to hide internal directories.