enum

package
v0.19.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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoolList = []string{
	"true",
	"false",
}
View Source
var BoolMap = map[Bool][]string{
	BoolNone:  {"inherit"},
	BoolTrue:  {"true"},
	BoolFalse: {"false"},
}

Functions

func BoolFlag

func BoolFlag(value *Bool, name string, usage string) *pflag.Flag

func NewBoolValue

func NewBoolValue(value *Bool) pflag.Value

Types

type Bool

type Bool enumflag.Flag
const (
	BoolNone Bool = iota
	BoolTrue
	BoolFalse
)

Jump to

Keyboard shortcuts

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