LoadYaml loads struct fields from yaml document.
(target interface{}, yaml *yaml.Node, options LoadOptions)
| 7 | |
| 8 | // LoadYaml loads struct fields from yaml document. |
| 9 | func LoadYaml(target interface{}, yaml *yaml.Node, options LoadOptions) error { |
| 10 | soft, err := NewSoftYaml(yaml) |
| 11 | if err != nil { |
| 12 | return err |
| 13 | } |
| 14 | |
| 15 | return Load(target, soft, options) |
| 16 | } |
| 17 | |
| 18 | // StoreYaml stores struct fields to yaml document. |
| 19 | func StoreYaml(target interface{}, yaml *yaml.Node, options StoreOptions) error { |