envor 0.1.5

Get env vars to types with default.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use envor::envor::*;

fn main() {
    let opt_value_ok: Option<i32> = env_or_opt("OPT_VALUE", -50);

    let opt_value_illegal: Option<i32> = env_or_opt("OPT_VALUE", "illegal default");

    println!(
        "opt_value_ok = {:?} , opt_value_illegal = {:?}",
        opt_value_ok, opt_value_illegal
    );
}