fetch_configuration 0.2.0

Library to fetch configuration from config file.
Documentation

fetch_configuration

A Library to fetch the configurations form the config file.

Use

Add dependency in Cargo.toml

[dependencies]
fetch_configuration = "0.2.0"

Example to use fetch configuration crate

extern crate fetch_configuration;
use fetch_configuration::configuration;

fn main() {
        let config = configuration("config.json").unwrap();
        let time = config.get(&"TIMER".to_string()) .expect("Key not present");
        print!("{}", time);
}

Contributing

If you want to contribute to this crate please take a look to Click Me.