fmt

package
v0.0.0-...-bc5e03d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: AFL-3.0, CC-BY-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON2Slice

func JSON2Slice(fmtClis *ClisT, thread int)

JSON2Slice convert json string to clice

func PrettyJSON

func PrettyJSON(fmtClis *ClisT, thread int)

PrettyJSON pretty the json string or files

Types

type ClisT

type ClisT struct {
	Stdin       *[]byte
	Files       *[]string
	JSON        *map[int]map[string]interface{}
	Table       *map[int][]interface{}
	PrettyJSON  bool
	JSONToSlice bool
	JSONToCSV   bool
	Indent      int
	SortKeys    bool
	Thread      int
}

ClisT is the params to run PrettyJSON

Jump to

Keyboard shortcuts

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