Documentation ¶
Index ¶
- func Args() []string
- func Bool(flag EnvFlag, value bool) *bool
- func BoolArray(flag EnvFlag, value []bool) *[]bool
- func BoolArrayVar(ptr *[]bool, flag EnvFlag, value []bool)
- func BoolVar(ptr *bool, flag EnvFlag, value bool)
- func CommandLine() *flags.FlagSet
- func Defaults() string
- func Duration(flag EnvFlag, value time.Duration) *time.Duration
- func DurationArray(flag EnvFlag, value []time.Duration) *[]time.Duration
- func DurationArrayVar(ptr *[]time.Duration, flag EnvFlag, value []time.Duration)
- func DurationVar(ptr *time.Duration, flag EnvFlag, value time.Duration)
- func Float(flag EnvFlag, value float64) *float64
- func FloatArray(flag EnvFlag, value []float64) *[]float64
- func FloatArrayVar(ptr *[]float64, flag EnvFlag, value []float64)
- func FloatVar(ptr *float64, flag EnvFlag, value float64)
- func Int(flag EnvFlag, value int) *int
- func Int64(flag EnvFlag, value int64) *int64
- func Int64Array(flag EnvFlag, value []int64) *[]int64
- func Int64ArrayVar(ptr *[]int64, flag EnvFlag, value []int64)
- func Int64Var(ptr *int64, flag EnvFlag, value int64)
- func IntArray(flag EnvFlag, value []int) *[]int
- func IntArrayVar(ptr *[]int, flag EnvFlag, value []int)
- func IntVar(ptr *int, flag EnvFlag, value int)
- func Parse()
- func Parsed() bool
- func PrintDefaults()
- func Set(name string, value string) error
- func Size(flag EnvFlag, value bytesize.Size) *bytesize.Size
- func SizeArray(flag EnvFlag, value []bytesize.Size) *[]bytesize.Size
- func SizeArrayVar(ptr *[]bytesize.Size, flag EnvFlag, value []bytesize.Size)
- func SizeVar(ptr *bytesize.Size, flag EnvFlag, value bytesize.Size)
- func String(flag EnvFlag, value string) *string
- func StringArray(flag EnvFlag, value []string) *[]string
- func StringArrayVar(ptr *[]string, flag EnvFlag, value []string)
- func StringVar(ptr *string, flag EnvFlag, value string)
- func Time(flag EnvFlag, value time.Time) *time.Time
- func TimeArray(flag EnvFlag, value []time.Time) *[]time.Time
- func TimeArrayVar(ptr *[]time.Time, flag EnvFlag, value []time.Time)
- func TimeVar(ptr *time.Time, flag EnvFlag, value time.Time)
- func Uint(flag EnvFlag, value uint) *uint
- func Uint64(flag EnvFlag, value uint64) *uint64
- func Uint64Array(flag EnvFlag, value []uint64) *[]uint64
- func Uint64ArrayVar(ptr *[]uint64, flag EnvFlag, value []uint64)
- func Uint64Var(ptr *uint64, flag EnvFlag, value uint64)
- func UintArray(flag EnvFlag, value []uint) *[]uint
- func UintArrayVar(ptr *[]uint, flag EnvFlag, value []uint)
- func UintVar(ptr *uint, flag EnvFlag, value uint)
- type EnvFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolArrayVar ¶
func CommandLine ¶
CommandLine returns the flag global flag.CommandLine.
func Defaults ¶
func Defaults() string
Defaults returns the formatted application flag argument defaults.
func DurationArrayVar ¶
func FloatArray ¶
func FloatArrayVar ¶
func Int64Array ¶
func Int64ArrayVar ¶
func IntArrayVar ¶
func PrintDefaults ¶
func PrintDefaults()
PrintDefaults prints formatted application flag argument defaults.
func SizeArrayVar ¶
func SizeArrayVar(ptr *[]bytesize.Size, flag EnvFlag, value []bytesize.Size)
func StringArray ¶
func StringArrayVar ¶
func Uint64Array ¶
func Uint64ArrayVar ¶
func UintArrayVar ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.