Function envmnt::parse_env_file_content
source · [−]Expand description
Parses the provided content as a map of key/value. The content should be in the form of an env file format.
Arguments
env_content
- The string to parse in env file format
Example
fn main() {
let env = envmnt::parse_env_file_content(r#"
ENV_VAR1=1
ENV_VAR2=2
"#);
println!("Parsed Env: {:?}", &env);
}