strictyaml

package
v0.0.0-...-242d746 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package strictyaml provides a strict YAML unmarshaller based on `go-yaml/yaml`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(b []byte, yamlObj interface{}) error

Unmarshal takes a byte array and an interface passed by reference. The d.Decode will read the next YAML-encoded value from its input and store it in the value pointed to by yamlObj. Any config keys from the incoming YAML document which do not correspond to expected keys in the config struct will result in errors.

TODO(https://github.com/go-yaml/yaml/issues/639): Replace this function with yaml.Unmarshal once a more ergonomic way to set unmarshal options is added upstream.

Types

This section is empty.

Jump to

Keyboard shortcuts

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