StoreYaml stores struct fields to yaml document.
(target interface{}, yaml *yaml.Node, options StoreOptions)
| 17 | |
| 18 | // StoreYaml stores struct fields to yaml document. |
| 19 | func StoreYaml(target interface{}, yaml *yaml.Node, options StoreOptions) error { |
| 20 | soft, err := NewSoftYaml(yaml) |
| 21 | if err != nil { |
| 22 | return err |
| 23 | } |
| 24 | |
| 25 | return Store(target, soft, options) |
| 26 | } |
| 27 | |
| 28 | // LoadJSON loads struct fields from json document. |
| 29 | func LoadJSON(target interface{}, m map[string]interface{}, options LoadOptions) error { |