Skip to content

Yaml with metadata

Compare
Choose a tag to compare
@taustgen-wework taustgen-wework released this 12 Apr 21:47
· 1 commit to v3 since this release
8e076d9

This release adds support for the yaml.StructMeta interface. By adding a field of type yaml.StructMeta to store metadata the relative positioning of fields as well as comments, the yaml package can now support update in place for structs.

This is a great boon when working on config files that are regularly checked into git as they will only display line changes for the changed field rather than reordering the entire document according to the ordering the fields appear on the struct.