Documentation ¶
Overview ¶
Package fmtutil implements some formatting utility functions.
Package fmtutil implements some formatting utility functions.
Index ¶
- Variables
- func MustPrintJSON(in interface{})
- func PrintJSON(in interface{}) error
- func PrintJSONMin(in interface{}) error
- func PrintJSONMore(in interface{}, jsonPrefix, jsonIndent string) error
- func PrintReader(r io.Reader) error
- func SprintfFormatLeadingCharLength(char string, length uint) string
- func SprintfFormatLeadingCharMaxIntVal(char string, value int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JSONPretty bool = true JSONPrefix string = "" JSONIndent string = " " )
Functions ¶
func MustPrintJSON ¶ added in v0.37.3
func MustPrintJSON(in interface{})
func PrintJSON ¶
func PrintJSON(in interface{}) error
PrintJSON pretty prints anything using a default indentation
func PrintJSONMin ¶
func PrintJSONMin(in interface{}) error
PrintJSONMin pretty prints anything using a default indentation
func PrintJSONMore ¶
PrintJSONMore pretty prints anything using supplied indentation.
func PrintReader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.