# Functions
BodyWithDiagnostics returns a hcl.Body that wraps another hcl.Body and emits the given diagnostics for any content-extraction method.
Chain takes a slice of transformers and returns a single new Transformer that applies each of the given transformers in sequence.
Deep applies the given transform to the given body and then wraps the result such that any descendent blocks that are decoded will also have the transform applied to their bodies.
NewErrorBody returns a hcl.Body that returns the given diagnostics whenever any of its content-access methods are called.
Shallow is equivalent to calling transformer.TransformBody(body), and is provided only for completeness of the top-level API.
# Interfaces
A Transformer takes a given body, applies some (possibly no-op) transform to it, and returns the new body.
# Type aliases
TransformerFunc is a function type that implements Transformer.