Skip to main content

init

Function init 

Source
pub fn init() -> Result<(), Error>
Expand description

Load dotenv file with a default path. Use init_with_path to load from a specific file.

ยงExamples

use dotconf;

std::fs::write(".env", "a=b").unwrap();
dotconf::init().expect("Failed to load env conf file");