Documentation
¶
Overview ¶
Package flag contains types that represent typed command-line flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean struct {
Value bool
Required bool
Hidden bool
Destination *bool
Name string
Usage string
EnvVar string
}
The Boolean type represents a command-line flag that is parsed as a boolean value.
type Duration ¶
type Duration struct {
Name string
Usage string
Value time.Duration
Destination *time.Duration
EnvVar string
Required bool
Hidden bool
}
The Duration type represents a command-line flag that is parsed as a time.Duration value.
type Flag ¶
The Flag interface describes types that can be unwrapped into a cli.Flag implementation.
type Float64 ¶
type Float64 struct {
Name string
Usage string
Value float64
Destination *float64
EnvVar string
Required bool
Hidden bool
}
The Float64 type represents a command-line flag that is parsed as a float64 value.
type Int ¶ added in v1.9.0
type Int struct {
Name string
Usage string
Value int
Destination *int
EnvVar string
Required bool
Hidden bool
}
The Int type represents a command-line flag that is parsed as an integer value.
Click to show internal directories.
Click to hide internal directories.