Skip to main content

parse_env

Function parse_env 

Source
pub fn parse_env(content: &str) -> IndexMap<String, String>
Expand description

Parse a dotenv-formatted string into (name, value) pairs.

Iteration order matches the order of definitions in content. When the same name appears multiple times, the last definition wins and keeps the position of the first occurrence (standard IndexMap insert behavior).