Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncBoolVar ¶
FuncBoolVar is a type of flag that accepts a function, converts the user's value to a bool, and then calls the given function.
func (FuncBoolVar) IsBoolFlag ¶
func (f FuncBoolVar) IsBoolFlag() bool
func (FuncBoolVar) Set ¶
func (f FuncBoolVar) Set(s string) error
func (FuncBoolVar) String ¶
func (f FuncBoolVar) String() string
type FuncDurationVar ¶
FuncDurationVar is a type of flag that accepts a function, converts the user's value to a duration, and then calls the given function.
func (FuncDurationVar) IsBoolFlag ¶
func (f FuncDurationVar) IsBoolFlag() bool
func (FuncDurationVar) Set ¶
func (f FuncDurationVar) Set(s string) error
func (FuncDurationVar) String ¶
func (f FuncDurationVar) String() string
type FuncOptionalStringVar ¶ added in v0.10.0
FuncOptionalStringVar is a flag that accepts a function which it calls on the optional string given by the user.
func (FuncOptionalStringVar) IsBoolFlag ¶ added in v0.10.0
func (f FuncOptionalStringVar) IsBoolFlag() bool
func (FuncOptionalStringVar) Set ¶ added in v0.10.0
func (f FuncOptionalStringVar) Set(s string) error
func (FuncOptionalStringVar) String ¶ added in v0.10.0
func (f FuncOptionalStringVar) String() string
type FuncVar ¶
FuncVar is a type of flag that accepts a function that is the string given by the user.
func (FuncVar) IsBoolFlag ¶
type StringFlag ¶
type StringFlag []string
StringFlag implements the flag.Value interface and allows multiple calls to the same variable to append a list.
func (*StringFlag) Set ¶
func (s *StringFlag) Set(value string) error
func (*StringFlag) String ¶
func (s *StringFlag) String() string
Click to show internal directories.
Click to hide internal directories.