Skip to main content

parse_dotenv

Function parse_dotenv 

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

Parse a dotenv-format string into a key-value map.

Supports:

  • KEY=value
  • export KEY=value
  • Quoted values ("value" or 'value')
  • Comments (# ...) and blank lines