Documentation
¶
Index ¶
- type Flag
- func (a *Flag) Get() (string, bool)
- func (a *Flag) GetBool() (bool, bool)
- func (a *Flag) GetInt() (int, bool)
- func (a *Flag) GetInt64() (int64, bool)
- func (a *Flag) GetInt64s() ([]int64, error)
- func (a *Flag) GetInts() []int
- func (a *Flag) GetX() string
- func (a *Flag) Gets() []string
- func (a *Flag) JoinDefault() string
- func (a *Flag) JoinName() string
- func (a *Flag) ValsLen() int
- type HookFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag struct {
Name []string `json:"name"`
Description string `json:"description"`
Default []string `json:"default"`
Required bool `json:"required"`
Env []string `json:"env"`
NoValue bool `json:"no_value"`
SingleValue bool `json:"single_value"`
HookFunc HookFunc
Values []string
Exist bool
}
func (*Flag) JoinDefault ¶
Click to show internal directories.
Click to hide internal directories.