easy_yaml

Crates.ioeasy_yaml
lib.rseasy_yaml
version0.1.1
sourcesrc
created_at2024-04-14 18:55:47.488102
updated_at2024-04-14 20:01:55.453277
descriptionEasy work with Yaml files
homepagehttps://github.com/leonovk/easy_yaml
repositoryhttps://github.com/leonovk/easy_yaml
max_upload_size
id1208460
size14,231
Кирилл Леонов (leonovk)

documentation

README

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!("-_-"),
}
Commit count: 7

cargo fmt