nullable

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nullable

type Nullable[V any] struct {
	Value V
	// contains filtered or unexported fields
}

func New

func New[V any]() *Nullable[V]

func (*Nullable[V]) Clear

func (v *Nullable[V]) Clear()

func (*Nullable[V]) MarshalJSON

func (v *Nullable[V]) MarshalJSON() (data []byte, err error)

func (*Nullable[V]) Null

func (v *Nullable[V]) Null() bool

func (*Nullable[V]) Set

func (v *Nullable[V]) Set(value V)

func (*Nullable[V]) UnmarshalJSON

func (v *Nullable[V]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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