strictyaml

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package strictyaml rejects YAML features that make signed configuration ambiguous while retaining ordinary scalar types needed by schemas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(path string, source []byte, target any) (*yaml.Node, error)

Decode reads exactly one document, rejects aliases, anchors, merge keys, custom tags, duplicate mapping keys, and unknown struct fields, and returns its syntax tree for callers that need more precise source mapping.

Types

type Error

type Error struct {
	Path    string
	Line    int
	Column  int
	Message string
}

func (*Error) Error

func (failure *Error) Error() string

Jump to

Keyboard shortcuts

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