null

package
v0.0.0-...-8d8983d Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 3 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 Int

type Int = Null[int]

type Null

type Null[T any] struct{ sql.Null[T] }

func New

func New[T any](value T, valid bool) Null[T]

func NullIfZero

func NullIfZero[T comparable](value T) Null[T]

func (Null[T]) MarshalJSON

func (n Null[T]) MarshalJSON() ([]byte, error)

func (*Null[T]) UnmarshalJSON

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

type String

type String = Null[string]

type Time

type Time = Null[time.Time]

Jump to

Keyboard shortcuts

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