Documentation ¶
Overview ¶
Package cflag is an extension to the standard flag package that brings support of complex types.
Index ¶
- func Bools(name string, value []bool, usage string) *[]bool
- func Durations(name string, value []time.Duration, usage string) *[]time.Duration
- func Float64s(name string, value []float64, usage string) *[]float64
- func Int64s(name string, value []int64, usage string) *[]int64
- func Ints(name string, value []int, usage string) *[]int
- func Strings(name string, value []string, usage string) *[]string
- func Uint64s(name string, value []uint64, usage string) *[]uint64
- func Uints(name string, value []uint, usage string) *[]uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bools ¶
Bools is an equivalent of flag.Bool but for []bool value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of a bool slice variable that stores the value of the flag.
func Durations ¶
Durations is an equivalent of flag.Duration but for []time.Duration value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of a time.Duration slice variable that stores the value of the flag.
func Float64s ¶
Float64s is an equivalent of flag.Float64 but for []float64 value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of a float64 slice variable that stores the value of the flag.
func Int64s ¶
Int64s is an equivalent of flag.Int64 but for []int64 value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of an int64 slice variable that stores the value of the flag.
func Ints ¶
Ints is an equivalent of flag.Int but for []int value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of an int slice variable that stores the value of the flag.
func Strings ¶
Strings is an equivalent of flag.String but for []string value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of a string slice variable that stores the value of the flag.
func Uint64s ¶
Uint64s is an equivalent of flag.Uint64 but for []uint64 value. It defines a slice flag with the specified name, default value, and usage string. The returned value is the address of a uint64 slice variable that stores the value of the flag.
Types ¶
This section is empty.