Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolValue ¶
type BoolValue struct {
// contains filtered or unexported fields
}
BoolValue provides a flag value that's aware if it has been set.
type DurationValue ¶
type DurationValue struct {
// contains filtered or unexported fields
}
DurationValue provides a flag value that's aware if it has been set.
func (*DurationValue) Merge ¶
func (d *DurationValue) Merge(onto *time.Duration)
Merge will overlay this value if it has been set.
func (*DurationValue) Set ¶
func (d *DurationValue) Set(v string) error
Set implements the flag.Value interface.
func (*DurationValue) String ¶
func (d *DurationValue) String() string
String implements the flag.Value interface.
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 ¶
FuncOptionalStringVar is a flag that accepts a function which it calls on the optional string given by the user.
func (FuncOptionalStringVar) IsBoolFlag ¶
func (f FuncOptionalStringVar) IsBoolFlag() bool
func (FuncOptionalStringVar) Set ¶
func (f FuncOptionalStringVar) Set(s string) error
func (FuncOptionalStringVar) String ¶
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