tristate

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 42

Documentation

Index

Constants

View Source
const (
	True  = TriState("true")
	False = TriState("false")
	None  = TriState("")
)

Variables

View Source
var (
	TriStateType       = reflect.TypeOf(True)
	TriStateTrueValue  = reflect.ValueOf(True)
	TriStateFalseValue = reflect.ValueOf(False)
	TriStateNoneValue  = reflect.ValueOf(None)
)

Functions

This section is empty.

Types

type TriState

type TriState string

func NewFromBool

func NewFromBool(b bool) TriState

func (TriState) Bool

func (r TriState) Bool() bool

func (TriState) IsFalse

func (r TriState) IsFalse() bool

func (TriState) IsNone

func (r TriState) IsNone() bool

func (TriState) IsTrue

func (r TriState) IsTrue() bool

func (TriState) String

func (r TriState) String() string

Jump to

Keyboard shortcuts

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