package
0.0.0-20241227184035-be8c621d8cb0
Repository: https://github.com/ainsleydev/webkit.git
Documentation: pkg.go.dev
# Functions
AppEnvironment returns the app environment.
Get provides a default override for environment vars as a second argument.
GetOrError will attempt to get the value from the environment variable and return an error if not available.
IsDevelopment returns whether we are running the app in development.
IsProduction returns whether we are running the app in production.
IsStaging returns whether we are running the app in staging.
ParseConfig loads the environment variables from the .env file and parses the environment variables into the provided struct.
# Constants
AppEnvironmentKey is the key for the app environment, i.e.
Development env definition.
Production env definition.
Staging env definition.