Documentation ¶
Index ¶
- func FirstLowerCase(s string) string
- func FirstUpperCase(s string) string
- func LookupEnvBool(key string, value bool) bool
- func LookupEnvFloat64(key string, value float64) float64
- func LookupEnvInt(key string, value int) int
- func LookupEnvInt64(key string, value int64) int64
- func LookupEnvString(key, value string) string
- func LookupEnvUint(key string, value uint) uint
- func LookupEnvUint64(key string, value uint64) uint64
- func SnakeCase(s string) string
- type Flag
- func (f Flag) Default(value interface{}, overrides []Override) Flag
- func (f Flag) Label(format string, a ...interface{}) Flag
- func (f Flag) ToBool(fs *flag.FlagSet) *bool
- func (f Flag) ToFloat64(fs *flag.FlagSet) *float64
- func (f Flag) ToInt(fs *flag.FlagSet) *int
- func (f Flag) ToInt64(fs *flag.FlagSet) *int64
- func (f Flag) ToString(fs *flag.FlagSet) *string
- func (f Flag) ToUint(fs *flag.FlagSet) *uint
- func (f Flag) ToUint64(fs *flag.FlagSet) *uint64
- type Override
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstLowerCase ¶
FirstLowerCase change first letter to lowerCase
func FirstUpperCase ¶
FirstUpperCase change first letter to UpperCase
func LookupEnvBool ¶
LookupEnvBool search for given key in environment as bool
func LookupEnvFloat64 ¶
LookupEnvFloat64 search for given key in environment as float64
func LookupEnvInt ¶
LookupEnvInt search for given key in environment as int
func LookupEnvInt64 ¶ added in v4.22.3
LookupEnvInt64 search for given key in environment as int64
func LookupEnvString ¶
LookupEnvString search for given key in environment
func LookupEnvUint ¶
LookupEnvUint search for given key in environment as uint
func LookupEnvUint64 ¶ added in v4.22.2
LookupEnvUint64 search for given key in environment as uint64
Types ¶
type Flag ¶
type Flag struct {
// contains filtered or unexported fields
}
Flag describe a flag
Click to show internal directories.
Click to hide internal directories.