// use regex::Regex;

#[macro_use]
extern crate lazy_static;

mod static_func;
use static_func::static_kv;
use static_func::read_func::{read_kv, rw_mut_kv};

fn main() {
    read_kv();
    match rw_mut_kv() {
        Ok(()) => {
            let m = static_kv::MAP_MUT.read().map_err(|e| e.to_string()).unwrap();
            assert_eq!("baz", *m.get(&1).unwrap_or(&static_kv::NF));
        },
        Err(e) => { println!("Error: {:?}", e); }
    }
}
