Documentation
¶
Overview ¶
Package encode serialises an extracted data tree into one of the supported wire formats. JSON, YAML, and msgpack are equivalent projections of the same tree; a Lua encoder is deferred (plan 166) but would slot in behind the same Format enum.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format string
Format names a supported output encoding.
func ParseFormat ¶
ParseFormat maps a CLI `--format` value to a Format. The error lists the accepted values so the caller can surface a clear message.
Click to show internal directories.
Click to hide internal directories.