macro_rules! var {
($key:expr) => { ... };
($key:expr, $default:expr) => { ... };
}
Expand description
var extracts environment variables at runtime with a default fallback value if a default is not provided, the value is simply an empty string if not found This function will return the provided default if env::var cannot find the key or if the key is somehow malformed.