Documentation ¶
Overview ¶
Package flags defines extra flag types for use in command line flag parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntMap ¶
IntMap is a map[string]int64 container for command line flags. The default initialization will create an empty map. If you need default backing map use NewIntMap.
func NewIntMap ¶
NewIntMap will wrap the pointer to the map in a IntMap and set the underlying map to val.
func (*IntMap) Get ¶
func (m *IntMap) Get() interface{}
Get returns the values of m. The interface will need to be type asserted to IntMap for use.
type StringList ¶
type StringList []string
StringList is a []string container for command line flags. The default initialization will create an empty slice. If you need default backing slice map use NewStringList.
func NewStringList ¶
func NewStringList(p *[]string, val []string) *StringList
NewStringList will wrap the pointer to the slice in a StringList and set the underlying slice to val.
func (*StringList) Get ¶
func (ss *StringList) Get() interface{}
Get returns the values of ss. The interface will need to be type asserted to StringList for use.
func (*StringList) Set ¶
func (ss *StringList) Set(s string) error
Set sets the value of ss to the comma separated values in s.
func (*StringList) String ¶
func (ss *StringList) String() string
type StringMap ¶
StringMap is a map[string]string container for command line flags. The default initialization will create an empty map. If you need default backing map use NewStringMap.
func NewStringMap ¶
NewStringMap will wrap the pointer to the map in a StringMap and set the underlying map to val.
func (*StringMap) Get ¶
func (m *StringMap) Get() interface{}
Get returns the values of m. The interface will need to be type asserted to StringMap for use.