Function kankyo::load [] [src]

pub fn load() -> Result<()>

Loads a .env file at the current working directory (./.env).

Examples

kankyo::load()?;

println!("Loaded!");

Errors

Returns Error::Io if there was an error reading the file.