pub fn from_filename_iter<P: AsRef<Path>>(filename: P) -> Result<Iter<File>>
Expand description

Returns an iterator over environment variables from the specified file.

Examples

for item in dotenvy::from_filename_iter("custom.env").unwrap() {
    let (key, val) = item.unwrap();
    println!("{key}={val}");
  }