Previously, only a *yaml.Node was accepted, which required the caller to encode arbitrary data to an AST node before they would be able to use the Encoder. This saves them that step while remaining backwards-compatible for callers still passing in AST nodes.
Previously, only a
*yaml.Node
was accepted, which required the caller to encode arbitrary data to an AST node before they would be able to use theEncoder
. This saves them that step while remaining backwards-compatible for callers still passing in AST nodes.