Documentation
¶
Overview ¶
Package multiflag implements helper functions for creating flags with multiple names.
Index ¶
- func Bool(value bool, usage string, names ...string) *bool
- func Duration(value time.Duration, usage string, names ...string) *time.Duration
- func Float64(value float64, usage string, names ...string) *float64
- func Int(value int, usage string, names ...string) *int
- func Int64(value int64, usage string, names ...string) *int64
- func String(value string, usage string, names ...string) *string
- func Uint(value uint, usage string, names ...string) *uint
- func Uint64(value uint64, usage string, names ...string) *uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool defines a bool flag with specified default value, usage string and, names. The return value is the address of a bool variable that stores the value of the flag.
func Duration ¶
Duration defines a time.Duration flag with specified default value, usage string, and names. The return value is the address of a time.Duration variable that stores the value of the flag. The flag accepts a value acceptable to time.ParseDuration.
func Float64 ¶
Float64 defines a float64 flag with specified default value, usage string, and names. The return value is the address of a float64 variable that stores the value of the flag.
func Int ¶
Int defines an int flag with specified default value, usage string, and names. The return value is the address of an int variable that stores the value of the flag.
func Int64 ¶
Int64 defines an int64 flag with specified default value, usage string, and names. The return value is the address of an int64 variable that stores the value of the flag.
func String ¶
String defines a string flag with specified default value, usage string, and names. The return value is the address of a string variable that stores the value of the flag.
Types ¶
This section is empty.