Documentation ¶
Overview ¶
Package flagutil contains flags that parse string lists and string maps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringListValue ¶
type StringListValue []string
StringListValue is a []string flag that accepts a comma separated list of elements. To include an element containing a comma, quote it with a backslash '\'.
func (StringListValue) Get ¶
func (value StringListValue) Get() interface{}
func (*StringListValue) Set ¶
func (value *StringListValue) Set(v string) error
func (StringListValue) String ¶
func (value StringListValue) String() string
type StringMapValue ¶
StringMapValue is a map[string]string flag. It accepts a comma-separated list of key value pairs, of the form key:value. The keys cannot contain colons.
func (StringMapValue) Get ¶
func (value StringMapValue) Get() interface{}
func (*StringMapValue) Set ¶
func (value *StringMapValue) Set(v string) error
func (StringMapValue) String ¶
func (value StringMapValue) String() string
Click to show internal directories.
Click to hide internal directories.