Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFormat = FormatJSON
View Source
const DefaultPretty = true
Variables ¶
This section is empty.
Functions ¶
func FormatOptions ¶
func FormatOptions() string
func JSON ¶
func JSON(data interface{}) (err error)
JSON allows you to override the default output method and explicitly print JSON to the screen
func SetPrettyPrint ¶
Types ¶
type ConfigOption ¶
func ConfigFormat ¶
func ConfigFormat(format Format) ConfigOption
func ConfigPrettyPrint ¶
func ConfigPrettyPrint(pretty bool) ConfigOption
type Format ¶
type Format uint
Format provides the list of output formats supported
func ParseFormat ¶
Click to show internal directories.
Click to hide internal directories.