flagutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-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 ChoiceSet

type ChoiceSet struct {
	Options []string
	Value   *[]string
}

ChoiceSet is a flag value type that allows multiple values to be selected from multiple options. ChoiceSet implements flag.Value see https://github.com/spf13/pflag/blob/d5e0c0615acee7028e1e2740a11102313be88de1/flag.go#L187

func NewChoiceSet

func NewChoiceSet(options, value []string, p *[]string) *ChoiceSet

func (*ChoiceSet) Set

func (c *ChoiceSet) Set(val string) error

func (ChoiceSet) String

func (c ChoiceSet) String() string

func (*ChoiceSet) Type

func (c *ChoiceSet) Type() string

Jump to

Keyboard shortcuts

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