enum

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum struct {
	Allowed []string
	Value   string
}

func NewEnum

func NewEnum(allowed []string, d string) *Enum

newEnum give a list of allowed flag parameters, where the second argument is the default

func (*Enum) Set

func (a *Enum) Set(p string) error

func (Enum) String

func (a Enum) String() string

func (*Enum) Type

func (*Enum) Type() string

Jump to

Keyboard shortcuts

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