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 LookupEnvString(key, value string) string
- func LookupEnvUint(key string, value uint) uint
- 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) Name(name string) 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) ToString(fs *flag.FlagSet) *string
- func (f Flag) ToUint(fs *flag.FlagSet) *uint
- 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 LookupEnvString ¶
LookupEnvString search for given key in environment
func LookupEnvUint ¶
LookupEnvUint search for given key in environment as uint
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.