dump

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 6 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 stream is a terminal then the output will also use colors.

func Single added in v0.1.57

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

Single functions exactly the same as Pretty except it generates a single line without indentation or any other white space.

Types

This section is empty.

Jump to

Keyboard shortcuts

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