printer

package
v0.0.0-...-25ef9b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(format string, writer io.Writer, data interface{}) error

Types

type JsonPrinter

type JsonPrinter struct{}

func (*JsonPrinter) Print

func (p *JsonPrinter) Print(writer io.Writer, data interface{}) error

type Printer

type Printer interface {
	Print(io.Writer, interface{}) error
}

func NewJsonPrinter

func NewJsonPrinter() (Printer, error)

func NewTextPrinter

func NewTextPrinter() (Printer, error)

func NewYamlPrinter

func NewYamlPrinter() (Printer, error)

type TextPrinter

type TextPrinter struct{}

func (*TextPrinter) Print

func (p *TextPrinter) Print(writer io.Writer, data interface{}) error

type YamlPrinter

type YamlPrinter struct{}

func (*YamlPrinter) Print

func (y *YamlPrinter) Print(writer io.Writer, data interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL