null

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 8 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

func (*Null[T]) UnmarshalJSON

func (n *Null[T]) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*Null[T]) UnmarshalText

func (n *Null[T]) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

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