Expand description
§yaml2lua
Convert YAML to Lua table
§Example:
use yaml2lua::parse;
let yaml = r#"
string: yaml2lua
int: 420
bool: true
array:
- abc
- 123
"#;
let lua = parse(yaml).unwrap();
// Output:
// {
// ["string"] = "yaml2lua",
// ["int"] = 420,
// ["bool"] = true,
// ["array"] = {
// "abc",
// 123,
// },
// }
Made with <3 by Dervex
Functions§
- parse
- Parse YAML string into a Lua table