Documentation ¶
Index ¶
- func FindFlag(args []string, targetNames ...string) (value string, found bool)
- func LoadConfFile(confFile, defaultConfFile string, app interface{}) error
- func Parse(a interface{}, optionFns ...OptionsFn)
- func ParseArgs(a interface{}, args []string, optionFns ...OptionsFn)
- type ArrayFlags
- type Options
- type OptionsFn
- type PostProcessor
- type UsageShower
- type VersionShower
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfFile ¶
Types ¶
type ArrayFlags ¶
type ArrayFlags struct { Value string // contains filtered or unexported fields }
func (*ArrayFlags) Set ¶
func (i *ArrayFlags) Set(value string) error
func (*ArrayFlags) String ¶
func (i *ArrayFlags) String() string
type PostProcessor ¶
type PostProcessor interface {
PostProcess()
}
type UsageShower ¶
type UsageShower interface {
Usage() string
}
type VersionShower ¶
type VersionShower interface {
VersionInfo() string
}
Click to show internal directories.
Click to hide internal directories.