Documentation ¶
Index ¶
- func Bool(envName string, paramName string, defaultValue bool, description string) *bool
- func Duration(envName string, paramName string, defaultValue time.Duration, ...) *time.Duration
- func Float64(envName string, paramName string, defaultValue float64, description string) *float64
- func Int(envName string, paramName string, defaultValue int, description string) *int
- func Int64(envName string, paramName string, defaultValue int64, description string) *int64
- func Parse()
- func PrintDefaults()
- func String(envName string, paramName string, defaultValue string, desctiption string) *string
- func Uint(envName string, paramName string, defaultValue uint, description string) *uint
- func Uint64(envName string, paramName string, defaultValue uint64, description string) *uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool defines a bool parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of a bool variable that stores the value of the flag or the enviroment variable.
func Duration ¶
func Duration(envName string, paramName string, defaultValue time.Duration, description string) *time.Duration
Duration defines a time.Duration parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of a time.Durarion variable that stores the value of the flag or the enviroment variable.
func Float64 ¶
Float64 defines a float64 parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of a float64 variable that stores the value of the flag or the enviroment variable.
func Int ¶
Int defines an int parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of an int variable that stores the value of the flag or the enviroment variable.
func Int64 ¶
Int64 defines an int64 parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of an int64 variable that stores the value of the flag or the enviroment variable.
func PrintDefaults ¶
func PrintDefaults()
PrintDefaults prints, to standard error unless configured otherwise, a usage message showing the default settings of all defined command-line flags.
func String ¶
String defines a string parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of a string variable that stores the value of the flag or the enviroment variable. ATTENSION: Be careful, empty string is valid.
func Uint ¶
Uint defines a uint parameter with specified parameter name, environment variable name, default value, and usage string. The return value is the address of a uint variable that stores the value of the flag or the enviroment variable.
Types ¶
This section is empty.