[][src]Function envmnt::load_file

pub fn load_file(file: &str) -> Result<(), EnvmntError>

Parses the provided env file and loads all environment variables.

Arguments

  • file - The file path to load and parse

Example

extern crate envmnt;

fn main() {
    let output = envmnt::load_file("./src/test/var.env");

    assert!(output.is_ok());
}