Documentation
¶
Index ¶
- func Bool(fs *flag.FlagSet, prefix, docPrefix, name, label string, value bool, ...) *bool
- func Duration(fs *flag.FlagSet, prefix, docPrefix, name, label string, value time.Duration, ...) *time.Duration
- func FirstLowerCase(s string) string
- func FirstUpperCase(s string) string
- func Float64(fs *flag.FlagSet, prefix, docPrefix, name, label string, value float64, ...) *float64
- func Int(fs *flag.FlagSet, prefix, docPrefix, name, label string, value int, ...) *int
- func Int64(fs *flag.FlagSet, prefix, docPrefix, name, label string, value int64, ...) *int64
- func SnakeCase(s string) string
- func String(fs *flag.FlagSet, prefix, docPrefix, name, label string, value string, ...) *string
- func Uint(fs *flag.FlagSet, prefix, docPrefix, name, label string, value uint, ...) *uint
- func Uint64(fs *flag.FlagSet, prefix, docPrefix, name, label string, value uint64, ...) *uint64
- type Override
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶ added in v1.0.0
func Bool(fs *flag.FlagSet, prefix, docPrefix, name, label string, value bool, overrides []Override) *bool
Bool creates a bool flag
func Duration ¶ added in v1.1.0
func Duration(fs *flag.FlagSet, prefix, docPrefix, name, label string, value time.Duration, overrides []Override) *time.Duration
Duration creates a duration flag
func FirstLowerCase ¶
FirstLowerCase change first letter to lowerCase
func FirstUpperCase ¶
FirstUpperCase change first letter to UpperCase
func Float64 ¶ added in v1.0.0
func Float64(fs *flag.FlagSet, prefix, docPrefix, name, label string, value float64, overrides []Override) *float64
Float64 creates a float64 flag
func Int ¶ added in v1.0.0
func Int(fs *flag.FlagSet, prefix, docPrefix, name, label string, value int, overrides []Override) *int
Int creates a int flag
func Int64 ¶ added in v1.0.0
func Int64(fs *flag.FlagSet, prefix, docPrefix, name, label string, value int64, overrides []Override) *int64
Int64 creates a int64 flag
func String ¶ added in v1.0.0
func String(fs *flag.FlagSet, prefix, docPrefix, name, label string, value string, overrides []Override) *string
String creates a string flag
Types ¶
Click to show internal directories.
Click to hide internal directories.