Documentation ¶
Overview ¶
Package fmtutil implements some formatting utility functions.
Package fmtutil implements some formatting utility functions.
Index ¶
- Variables
- func MustPrintJSON(in any)
- func PrintJSON(in any) error
- func PrintJSONMin(in any) error
- func PrintJSONMore(in any, 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 any)
func PrintJSONMin ¶
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.