Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BPJ = BestEffortPrettyJSON
BPJ is a shortcut (mostly used in tests) to BestEffortPrettyJSON.
View Source
var BPM = BestEffortPrettyMarshal
BPM is a shortcut (mostly used in tests) to BestEffortPrettyMarshal.
Functions ¶
func BestEffortPrettyJSON ¶
BestEffortPrettyJSON reformats a json string to be pretty, ignoring any error.
func BestEffortPrettyMarshal ¶
func BestEffortPrettyMarshal(v interface{}) string
BestEffortPrettyMarshal does a best effort JSON marshaling of 'v' with human readable output. '{}' will be produced if there is any JSON marshal error. This function never fails.
func PrettyJSON ¶
PrettyJSON reformats a json string to be pretty
func PrettyMarshal ¶
PrettyMarshal does a JSON marshaling of 'v' with human readable output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.