pretty

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SimplePrettyJSON

func SimplePrettyJSON(r io.Reader, pretty bool) (string, error)

Use the pretty json utilitary to create well, pretty json ? :nerd_face:

Types

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

JSON implement blablabla

func NewPrettyJSON

func NewPrettyJSON(in io.Reader, out io.Writer) JSON

NewPrettyJSON return a instacied JSON

func (*JSON) Close

func (pj *JSON) Close() error

Close stop the JSON parsing

func (*JSON) SetCompactMode

func (pj *JSON) SetCompactMode()

SetCompactMode render a compact JSON

func (*JSON) Start

func (pj *JSON) Start()

Start launch the JSON parsing

Jump to

Keyboard shortcuts

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