yamlutil

package
v0.0.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 3 Imported by: 0

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

func StrictUnmarshal(data []byte, v any) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL