Env.load

Copies environment variables, then loads the dotenv file, if present. Variables declared in the .env file will override system environment variables. All variable names are case-insensitive, and are stored as upper case.

struct Env
static
void
load
(
handlers...
)
(
string fileName = ".env"
,
bool copySystem = true
)
if (
__traits(compiles, )
)

Parameters

handlers

An optional list of exception handlers.

fileName string

The name of the dovenv file (".env" by default).

copySystem bool

If true, system environment variables are loaded as well.

Meta