Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get is a wrapper around os.Getenv that validates the environment variable against a list of supported environment variables.
When a environment variable is not supported because it is not listed in the list of supported environment variables, the function will log an error and behave as if the environment variable was not set.
In testing mode, the reader will automatically add the environment variable to the configuration file.
This function is a passthrough to the internal env package.
func Lookup ¶
Lookup is a wrapper around os.LookupEnv that validates the environment variable against a list of supported environment variables.
When a environment variable is not supported because it is not listed in the list of supported environment variables, the function will log an error and behave as if the environment variable was not set.
In testing mode, the reader will automatically add the environment variable to the configuration file.
This function is a passthrough to the internal env package.
Types ¶
This section is empty.