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 ¶
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.