Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
/ easy_yaml Public archive

Easy work with Yaml files in a rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

leonovk/easy_yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Yaml

Easy work with Yaml files

Dependency

cargo add easy_yaml

Usage

use easy_yaml::*;

let yaml = EasyYaml::new("tests/test.yaml");
let result = yaml.get("key2.key3.key4");

match result {
    Some(v) => match v {
        String(s) => assert_eq!("value2".to_string(), s),
        _ => panic!("Value: {:?}", v),
    },
    None => panic!("-_-"),
}

About

Easy work with Yaml files in a rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages