Documentation
¶
Index ¶
- func ReadConfig(arg *Arg, opts ...Options)
- type Arg
- func (a *Arg) AddCallBack(f func())
- func (a *Arg) Bool(defaultValue *bool, name string, usage string)
- func (a *Arg) Duration(defaultValue *time.Duration, name string, usage string)
- func (a *Arg) Float64(defaultValue *float64, name string, usage string)
- func (a *Arg) Int(defaultValue *int, name string, usage string)
- func (a *Arg) Int64(defaultValue *int64, name string, usage string)
- func (a *Arg) Parse()
- func (a *Arg) ParseErr() error
- func (a *Arg) String(defaultValue *string, name string, usage string)
- func (a *Arg) Uint(defaultValue *uint, name string, usage string)
- func (a *Arg) Uint64(defaultValue *uint64, name string, usage string)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.