yamlserialized 0.5.0
YAML serialization library for dyaml. Easily serialize/deserialize structs to/from YAML.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
YAML serialization library for D:YAML. Easily serialize/deserialize structs and classes to/from YAML nodes.
How to use
import yamlserialized : deserializeInto, toYAMLNode;
struct MyStruct {
int intField;
string stringField;
}
MyStruct st;
st.intField = 42;
st.stringField = "Don't panic.";
// Serialize the struct to a D:YAML Node
auto node = st.toYAMLNode();
// Create a new empty struct
MyStruct st2;
// Deserialize the node into it
node.deserializeInto(st2);
- Registered by Kjartan F. Kvamme
- 0.5.0 released 5 years ago
- forbjok/yamlserialized
- MIT
- Copyright © 2016-2019, Kjartan F. Kvamme
- Authors:
- Dependencies:
- dyaml, dunit
- Versions:
-
0.5.0 2019-Dec-27 0.4.0 2019-Mar-12 0.3.0 2017-Aug-02 0.2.0 2016-Dec-10 0.1.1 2016-Dec-10 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
7653 downloads total
-
- Score:
- 0.1
- Short URL:
- yamlserialized.dub.pm