Package format implements a config client Backend that performs formatting on items.
The available formats are registered during init() time via 'Register'.
ClearRegistry removes all registered formatters.
Useful in tests that call Register to setup initial state.
Register registers a Formatter implementation for given format.
If the supplied key is already registered, Register will panic.
Backend is a backend.B implementation that applies Formatter transformations to the various Items that pass through it.
Formatter transformations are registered explicitly to the Resolver descriptions of the types that they operate on. If an Item is already formatted, no further transformations will be applied.
Get implements backend.B.
GetAll implements backend.B.
Formatter applies a transformation to the data's cached representation.
The Formatter is supplied with the content to format along with the formatter-specific metadata, fd.
Formatter operates on a config.Config's Content via the "format" Backend.