Documentation ¶
Index ¶
- func Bool(name string, required bool, defaultValue bool, help string) *bool
- func Duration(name string, required bool, defaultValue time.Duration, help string) *time.Duration
- func Float64(name string, required bool, defaultValue float64, help string) *float64
- func Help() string
- func Int(name string, required bool, defaultValue int, help string) *int
- func Parse() error
- func String(name string, required bool, defaultValue, help string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func String ¶
String captures the value of an environment varialbe name: the name of the environment variable required: if set to true and environment variable does not exist an error will be raised defaultValue: the default value to return if the environment variable is not set help: help string related to the variable
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.