optional

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NullInt = Null[int]()
)

Functions

This section is empty.

Types

type Value

type Value[T any] struct {
	Value  T
	Exists bool
}

func Int

func Int(value int) Value[int]

func New

func New[T any](value T) Value[T]

func Null

func Null[T any]() Value[T]

Jump to

Keyboard shortcuts

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