pub fn load_file(file: &str) -> Result<(), EnvmntError>
Parses the provided env file and loads all environment variables.
file
- The file path to load and parse
fn main() {
let output = envmnt::load_file("./src/test/var.env");
assert!(output.is_ok());
}