null

package
v3.0.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL