Function dotenvy::dotenv_iter

source ·
pub fn dotenv_iter() -> Result<Iter<File>>
Expand description

Returns an iterator over environment variables.

§Examples

for item in dotenvy::dotenv_iter()? {
    let (key, val) = item?;
    println!("{}={}", key, val);
}