fmtr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fmtr

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

Fmtr is class of JSON formatter

func New

func New(indentSize int, tabs, colorable bool) *Fmtr

New returns new Fmtr instance

func (*Fmtr) Format

func (f *Fmtr) Format(j []byte) ([]byte, error)

Format retur formatted JSON string (colorized)

func (*Fmtr) FormatRaw

func (f *Fmtr) FormatRaw(j []byte) ([]byte, error)

FormatRaw retur formatted JSON string

Jump to

Keyboard shortcuts

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