Function dotenv_flow::dotenv

source ·
pub fn dotenv() -> Result<PathBuf>
Expand description

This is usually what you want. It loads the .env file located in the environment’s current directory or its parents in sequence.

Examples

use dotenv_flow;
dotenv_flow::dotenv().ok();