Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChoice = errors.New("invalid choice")
ErrInvalidChoice indicates that the provided flag argument is not among the valid choices.
Functions ¶
Types ¶
type ValueValidator ¶
type ValueValidator interface { // IsValidValue returns an error if the provided string value is valid for // the flag. IsValidValue(value string) error }
ValueValidator is the interface implemented by types that can validate a flag argument themselves. The provided value is directly passed from the command line. This interface has been retroported from jessevdk/go-flags.
Click to show internal directories.
Click to hide internal directories.