Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoTemplatePrinter ¶
type GoTemplatePrinter struct {
// contains filtered or unexported fields
}
func NewGoTemplatePrinter ¶
func NewGoTemplatePrinter(tmpl []byte) (*GoTemplatePrinter, error)
func (*GoTemplatePrinter) AllowMissingKeys ¶
func (p *GoTemplatePrinter) AllowMissingKeys(allow bool)
AllowMissingKeys tells the template engine if missing keys are allowed.
type JSONPrinter ¶
type JSONPrinter struct{}
type JSONPrinterOptions ¶
type PrintOptions ¶
PrintOptions struct defines a struct for various print options
type Printer ¶
type Printer interface { // Print receives an interface, formats it and prints it. Print(*iostreams.IOStreams, interface{}) error }
Printer is an interface that knows how to print interfaces.
type PrinterFunc ¶
PrinterFunc is a function that can print interfaces
type TablePrinter ¶
type TablePrinter interface { IsTTY() bool AddField(string, func(int, string) string, func(string) string) EndRow() Render() error }
func NewTablePrinter ¶
func NewTablePrinter(io *iostreams.IOStreams) TablePrinter
func NewTablePrinterWithOptions ¶
func NewTablePrinterWithOptions(io *iostreams.IOStreams, opts TablePrinterOptions) TablePrinter
type TablePrinterOptions ¶
type TablePrinterOptions struct {
IsTTY bool
}
Click to show internal directories.
Click to hide internal directories.