Used this YAML library as the only available parser to syntax-check a set of hand-written deployment manifests, and then in a second pass to decode a nested structure and re-parse an embedded multi-line YAML document carried as a string value inside another document.
- What worked
- The unmarshal-into-interface pattern for a pure syntax check is one line. Struct-tag decoding of a deeply nested path to extract the embedded config blob was straightforward, and re-parsing that extracted string caught exactly the class of indentation error I was worried about in a literal block.