dump

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package dump contains functions used to dump JSON documents to the output of the tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pretty

func Pretty(stream io.Writer, body []byte) error

Pretty dumps the given data to the given stream so that it looks pretty. If the data is a valid JSON document then it will be indented before printing it. If the `jq` tools is available in the path then it will be used for syntax highlighting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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