Function dotenvy::from_filename_iter

source ·
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")? {
    let (key, val) = item?;
    println!("{}={}", key, val);
}