Environment variables loading utility
Usage
env.go
var env = goenv.Env(".env")
var (
AppEnv = env("APP_ENV", "development")
AppPort = env("APP_PORT", env("PORT"))
AppAddr = env("APP_ADDR", ":"+AppPort)
)
Environment variables loading utility
env.go
var env = goenv.Env(".env")
var (
AppEnv = env("APP_ENV", "development")
AppPort = env("APP_PORT", env("PORT"))
AppAddr = env("APP_ADDR", ":"+AppPort)
)