package
1.4.2
Repository: https://github.com/ettec/otp-common.git
Documentation: pkg.go.dev

# Functions

GetBoolEnvVar reads an environment variable and returns the value as a bool, if the environment variable is not set then the application will panic.
GetEnvVar reads an environment variable and returns the value as a string, if the environment variable is not set then the application will panic.
GetIntEnvVar reads an environment variable and returns the value as an int, if the environment variable is not set then the application will panic.
GetOptionalBoolEnvVar reads an environment variable and returns the value as a bool, or the default value if the environment variable is not set.
GetOptionalEnvVar reads an environment variable and returns the value as a string, or the default value if the environment variable is not set.
GetOptionalFloatEnvVar reads an environment variable and returns the value as a float64, if the environment variable is not set then the application will panic.
GetOptionalIntEnvVar reads an environment variable and returns the value as an int, or the default value if the environment variable is not set.