Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppEnv ¶
func AppEnv() string
AppEnv returns the current application environment (development, production, testing).
func EnvBool ¶
EnvBool returns the value of an environment variable as a bool. Only "true" and "1" are considered truthy. Everything else returns the fallback.
func EnvInt ¶
EnvInt returns the value of an environment variable as an int, or the fallback if empty/unset or not a valid integer.
func IsDevelopment ¶
func IsDevelopment() bool
IsDevelopment returns true if APP_ENV is "development".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.