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
Type: string

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

copySystem
Type: bool

If true, system environment variables are loaded as well.

Meta