Documentation
¶
Index ¶
- func NewJSON(data []map[string]interface{}, options Options) *structPrinter
- func NewSingle(data []map[string]interface{}, field string) *singlePrinter
- func NewTable(data []map[string]interface{}, header []string) *tablePrinter
- func NewYAML(data []map[string]interface{}, options Options) *structPrinter
- type DataFn
- type Format
- type Options
- type Printable
- type Printer
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Some printers can wrap the resulting elements
// in a list. This option controls if the printer
// should also wrap a single result element in a list.
ListWrapSingleItem bool
}
Click to show internal directories.
Click to hide internal directories.