Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendSlice ¶
type AppendSlice []string
AppendSlice implements the flag.Value interface and allows multiple calls to the same variable to append a list.
func (*AppendSlice) Get ¶
func (s *AppendSlice) Get() []string
Get returns the actual underlying value
func (*AppendSlice) RawSet ¶
func (s *AppendSlice) RawSet(value string)
RawSet sets the underlying value directly
func (*AppendSlice) Set ¶
func (s *AppendSlice) Set(value string) error
Set implements the flag.Value interface.
func (*AppendSlice) String ¶
func (s *AppendSlice) String() string
String implements the flag.Value interface. [ TODO ] ensure there are no bugs when the slice has an empty string
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool provides a flag value that's aware if it has been set.
func (*Bool) IsBoolFlag ¶
IsBoolFlag is an optional method of the flag.Value interface which marks this value as boolean when the return value is true. See flag.Value for details.
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
Duration provides a flag value that's aware if it has been set.
type FlagMap ¶
FlagMap is a flag implementation used to provide key=value semantics multiple times.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String provides a flag value that's aware if it has been set.