Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStringBool ¶
MapStringBool can be set from the command line with the format `--flag "string=bool"`. Multiple comma-separated key-value pairs in a single invocation are supported. For example: `--flag "a=true,b=false"`. Multiple flag invocations are supported. For example: `--flag "a=true" --flag "b=false"`.
func NewMapStringBool ¶
func NewMapStringBool(m *map[string]bool) *MapStringBool
NewMapStringBool takes a pointer to a map[string]string and returns the MapStringBool flag parsing shim for that map
func (*MapStringBool) Set ¶
func (m *MapStringBool) Set(value string) error
Set implements github.com/spf13/pflag.Value
func (*MapStringBool) String ¶
func (m *MapStringBool) String() string
String implements github.com/spf13/pflag.Value
func (*MapStringBool) Type ¶
func (*MapStringBool) Type() string
Type implements github.com/spf13/pflag.Value
Click to show internal directories.
Click to hide internal directories.