fromyaml

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrYAML marks a YAML decode failure.
	ErrYAML errs.Const = "yaml"
	// ErrJSON marks a JSON encoding failure (e.g. a YAML mapping with
	// non-string keys, which JSON cannot represent).
	ErrJSON errs.Const = "json"
)

The package's error vocabulary: errs.Const sentinels matched with errors.Is.

Variables

This section is empty.

Functions

func FromYaml

func FromYaml(opts ...any) gloo.Command[[]byte, []byte]

FromYaml converts a YAML document on the input into a single compact JSON value (object, array, or scalar), letting YAML feed the rest of the json pipeline. The whole input is one document, so it is buffered and emitted as one value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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