simple env vars, checks if the env var exists or returns the zero value
credit goes to https://github.com/17twenty for initial authoring
env := env.GetAsString("ENV", "dev")
isFlagEnabled := env.GetAsBool("FEATURE_ONE")
allowList := env.GetAsSlice("ALLOW_LIST", ",")
LoadEnvFile("./.env.local")
foo := env.GetAsString("ENV", "dev")
env.WithStrictMode()
// ENV goes not exist
// panics
foo := env.GetAsString("ENV")
env.WithStrictMode()
// ENV goes not exist, returns bar
foo := env.GetAsStringWithDefault("ENV", "bar")
env.WithStrictMode()
// ENV goes not exist, returns 1
foo := env.GetAsIntWithDefault("ENV", 1)