respfmt

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT Imports: 8 Imported by: 0

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 Render

func Render(raw []byte, query, output string) ([]byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL