yaml

package
v1.4.2-prerelease05 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package yaml provides a lazy YAML unmarshaler that defers decoding until the eventual target type is known. It has no dependencies beyond yaml.v2, so it can be imported by leaf config packages (e.g. common/dynamicconfig/openfeatureclient/config) that must stay import-cycle-free with respect to common/config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node is a lazy-unmarshaler, because *yaml.Node only exists in gopkg.in/yaml.v3, not v2, and go.uber.org/config currently uses only v2.

func ToNode

func ToNode(input any) (*Node, error)

ToNode is a bit of a hack to get a *yaml.Node for config-parsing compatibility purposes. There is probably a better way to achieve this with yaml-loading compatibility, but this is at least fairly simple.

func (*Node) Decode

func (n *Node) Decode(out any) error

func (*Node) UnmarshalYAML

func (n *Node) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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