option

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyFloat = OptFloat{}
View Source
var EmptyInt = OptInt{}

Functions

This section is empty.

Types

type OptFloat

type OptFloat struct {
	// contains filtered or unexported fields
}

func Float

func Float(val float64) OptFloat

func (OptFloat) IsEmpty

func (f OptFloat) IsEmpty() bool

func (OptFloat) IsSet

func (f OptFloat) IsSet() bool

func (OptFloat) Val

func (f OptFloat) Val() float64

type OptInt

type OptInt struct {
	// contains filtered or unexported fields
}

func Int

func Int(val int) OptInt

func (OptInt) IsEmpty

func (i OptInt) IsEmpty() bool

func (OptInt) IsSet

func (i OptInt) IsSet() bool

func (OptInt) Val

func (i OptInt) Val() int

Jump to

Keyboard shortcuts

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