Documentation ¶
Overview ¶
Package fmtutil implements some formatting utility functions.
Package fmtutil implements some formatting utility functions.
Index ¶
- Variables
- 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 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.