Categorygithub.com/ditointernet/go-dito/lib/env
modulepackage
1.0.1
Repository: https://github.com/ditointernet/go-dito.git
Documentation: pkg.go.dev

# Functions

GetBool extracts a Bool value from the given environment variable.
GetEnvironmentByLabel translates an environment label into its respective Environment constant.
GetFloat extracts a Float value from the given environment variable.
GetInt extracts an Int value from the given environment variable.
GetString extracts a String value from the given environment variable.
MustGetBool extracts a Bool value from the given environment variable It exits the application if not present.
MustGetFloat extracts a Float value from the given environment variable It exits the application if not present.
MustGetInt extracts an Int value from the given environment variable It exits the application if not present.
MustGetString extracts a String value from the given environment variable It exits the application if not present.

# Constants

DevelopmentEnvironment indicates that the application is running in development environement.
ProductionEnvironment indicates that the application is running in production environement.
TestEnvironment indicates that the application is running in test environement.

# Type aliases

Environment is a constant that defines the context in which the application is running.