Documentation
¶
Overview ¶
Package yamlutil provides strict YAML unmarshaling that rejects unknown fields.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrictUnmarshal ¶
StrictUnmarshal is a drop-in replacement for yaml.Unmarshal that rejects unknown fields. Empty and comment-only content is handled gracefully (returns nil, like yaml.Unmarshal).
func StrictYAMLFormats ¶
func StrictYAMLFormats() []*frontmatter.Format
StrictYAMLFormats returns frontmatter format handlers that use yaml.v4 with strict field checking instead of the default yaml.v2 unmarshal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.