Documentation ¶
Overview ¶
Package flags provide a global flags cache and extends types of flags.
Index ¶
- func Bool(name string, defaultValue bool, usage string) *bool
- func Duration(name string, defaultValue time.Duration, usage string) *time.Duration
- func Float64(name string, defaultValue float64, usage string) *float64
- func Int(name string, defaultValue int, usage string) *int
- func ReadFile(name, path, usage string) **os.File
- func Slice(name string, defaultValue []string, usage string) *[]string
- func String(name string, defaultValue string, usage string) *string
- func ValidateNonZero(names ...string) error
- func Var(value flag.Value, name string, usage string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateNonZero ¶
ValidateNonZero checks the flags non-zero after parsing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.