Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetHumanReadablePrinter ¶
func SetHumanReadablePrinter(name string, hPrinter HumanReadablePrinter)
Types ¶
type BaseHumanReadablePrinter ¶
func NewGoTemplateBasePrinter ¶
func NewGoTemplateBasePrinter(templateStr string) (*BaseHumanReadablePrinter, error)
func (*BaseHumanReadablePrinter) GetHeaders ¶
func (h *BaseHumanReadablePrinter) GetHeaders() []interface{}
func (*BaseHumanReadablePrinter) GetRow ¶
func (h *BaseHumanReadablePrinter) GetRow(i interface{}) []interface{}
type HumanReadablePrinter ¶
type HumanReadablePrinter interface { GetHeaders() []interface{} GetRow(interface{}) []interface{} }
func GetHumanReadablePrinter ¶
func GetHumanReadablePrinter(name string) HumanReadablePrinter
type JsonPrinter ¶
type JsonPrinter struct{}
type LinePrinter ¶
type LinePrinter struct {
Printer HumanReadablePrinter
}
func NewGoTemplatePrinter ¶
func NewGoTemplatePrinter(templateStr string) (*LinePrinter, error)
func NewLinePrinter ¶
func NewLinePrinter(cmdName string) (*LinePrinter, error)
type Printer ¶
func GetPrinter ¶
type YAMLPrinter ¶
type YAMLPrinter struct{}
Click to show internal directories.
Click to hide internal directories.