Documentation
¶
Overview ¶
Package respfmt renders a JSON response body through an optional JMESPath projection and one of five output formats: yaml (default),
Index ¶
Constants ¶
View Source
const ( OutputYAML = "yaml" OutputYAMLStream = "yaml-stream" OutputJSON = "json" OutputText = "text" OutputTable = "table" )
Output names mirror the aws CLI vocabulary verbatim.
Variables ¶
This section is empty.
Functions ¶
func Eval ¶
Eval evaluates expr against decoded data, with vars injected as native `$name` variables (keys are bare names; Eval adds the `$`). See specverb-actions.md.
func EvalBool ¶
EvalBool evaluates expr and reports its JMESPath truthiness, the predicate form `until` and `fail-when` need. A non-boolean result is reduced via Truthy.
func Render ¶
Render applies the optional JMESPath projection to raw and formats the result per output. Empty raw returns empty bytes, no error. Empty query
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.