Documentation
¶
Index ¶
- type FlagSet
- func (f *FlagSet) BoolVar(field *bool, long string, defaultValue bool, usage string)
- func (f *FlagSet) BoolVarP(field *bool, long, short string, defaultValue bool, usage string)
- func (f *FlagSet) IntVar(field *int, long string, defaultValue int, usage string)
- func (f *FlagSet) IntVarP(field *int, long, short string, defaultValue int, usage string)
- func (f *FlagSet) MergeConfigFile(file string) error
- func (f *FlagSet) Parse() error
- func (f *FlagSet) SetDescription(description string)
- func (f *FlagSet) StringSliceVar(field *StringSlice, long string, defaultValue []string, usage string)
- func (f *FlagSet) StringSliceVarP(field *StringSlice, long, short string, defaultValue []string, usage string)
- func (f *FlagSet) StringVar(field *string, long, defaultValue, usage string)
- func (f *FlagSet) StringVarP(field *string, long, short, defaultValue, usage string)
- type StringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagSet ¶
type FlagSet struct {
// contains filtered or unexported fields
}
FlagSet is a list of flags for an application
func (*FlagSet) MergeConfigFile ¶
MergeConfigFile reads a config file to merge values from.
func (*FlagSet) SetDescription ¶
SetDescription sets the description field for a flagset to a value.
func (*FlagSet) StringSliceVar ¶
func (f *FlagSet) StringSliceVar(field *StringSlice, long string, defaultValue []string, usage string)
StringSliceVar adds a string slice flag with a longname
func (*FlagSet) StringSliceVarP ¶
func (f *FlagSet) StringSliceVarP(field *StringSlice, long, short string, defaultValue []string, usage string)
StringSliceVarP adds a string slice flag with a shortname and longname
func (*FlagSet) StringVarP ¶
StringVarP adds a string flag with a shortname and longname
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings
func (*StringSlice) Set ¶
func (i *StringSlice) Set(value string) error
Set appends a value to the string slice.
func (*StringSlice) String ¶
func (i *StringSlice) String() string
Click to show internal directories.
Click to hide internal directories.