Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValues ¶
func DefaultValues(rs ...Registerer)
DefaultValues intiates a set of configs (Registerers) with their defaults.
func DeprecatedFlag ¶
DeprecatedFlag logs a warning when you try to use it.
func RegisterFlags ¶
func RegisterFlags(rs ...Registerer)
RegisterFlags registers flags with the provided Registerers
Types ¶
type DayValue ¶
DayValue is a model.Time that can be used as a flag. NB it only parses days!
func NewDayValue ¶
NewDayValue makes a new DayValue; will round t down to the nearest midnight.
type Registerer ¶
Registerer is a thing that can RegisterFlags
type StringSlice ¶ added in v0.2.0
type StringSlice []string
StringSlice is a slice of strings that implements flag.Value
func (*StringSlice) Set ¶ added in v0.2.0
func (v *StringSlice) Set(s string) error
Set implements flag.Value
func (StringSlice) String ¶ added in v0.2.0
func (v StringSlice) String() string
String implements flag.Value
type URLValue ¶
URLValue is a url.URL that can be used as a flag.
func (*URLValue) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.