Documentation ¶
Index ¶
- func FormatItemAsJson(t interface{}) string
- func FormatItemAsList(t interface{}, p []string) string
- func FormatItemAsPrettyJson(t interface{}) string
- func FormatItemsAsJson(t interface{}) string
- func FormatItemsAsList(t interface{}, p []string) string
- func FormatItemsAsPrettyJson(t interface{}) string
- func FormatTable(data [][]string, header []string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatItemAsJson ¶
func FormatItemAsJson(t interface{}) string
exported function to print an item as json
func FormatItemAsList ¶
exported fuction to print a single struct item as a list
func FormatItemAsPrettyJson ¶
func FormatItemAsPrettyJson(t interface{}) string
exported function to print an item as pretty json
func FormatItemsAsJson ¶
func FormatItemsAsJson(t interface{}) string
exported function to print items as json
func FormatItemsAsList ¶
exported function to print struct items as a list
func FormatItemsAsPrettyJson ¶
func FormatItemsAsPrettyJson(t interface{}) string
exported function to print items as pretty json
func FormatTable ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.