Documentation
¶
Overview ¶
Package dump contains functions used to print documents to JSON, YAML and Table formats
Index ¶
Constants ¶
View Source
const ( JSONFormat = "json" YAMLFormat = "yaml" YMLFormat = "yml" )
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
JSON dumps the given data to the given stream so that it looks pretty. If the data is a valid JSON document then it will be indented before printing it. If the `jq` tool is available in the path then it will be used for syntax highlighting.
func PrintDataInFormat ¶ added in v0.27.0
PrintDataInFormat prints the given data to the given format
func Table ¶
Table prints the given data into a formatted table. Only properties that have a `header` tag will be printed. See https://github.com/lensesio/tableprinter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.