Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
JSON = Register("json", NewJSONPrinter())
)
View Source
var (
Text = Register("text", NewTextPrinter())
)
View Source
var (
YAML = Register("yaml", NewYAMLPrinter())
)
Functions ¶
Types ¶
type JSONPrinter ¶
type JSONPrinter struct{}
func NewJSONPrinter ¶
func NewJSONPrinter() *JSONPrinter
func (*JSONPrinter) Print ¶
func (p *JSONPrinter) Print(w io.Writer, params *PrintParameters) error
type PrintParameters ¶
type TextPrinter ¶
type TextPrinter struct{}
func NewTextPrinter ¶
func NewTextPrinter() *TextPrinter
func (*TextPrinter) Print ¶
func (p *TextPrinter) Print(w io.Writer, params *PrintParameters) error
type YAMLPrinter ¶
type YAMLPrinter struct{}
func NewYAMLPrinter ¶
func NewYAMLPrinter() *YAMLPrinter
func (*YAMLPrinter) Print ¶
func (p *YAMLPrinter) Print(w io.Writer, params *PrintParameters) error
Click to show internal directories.
Click to hide internal directories.