output

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FailedToOutPutInFormat = "failed to output %s in format %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(out io.Writer) *Renderer

func (*Renderer) AddRenderer

func (r *Renderer) AddRenderer(name, outType string, renderer func(out io.Writer, data interface{}) error)

func (*Renderer) Render

func (r *Renderer) Render(cmd, outputType string, data interface{}) error

Jump to

Keyboard shortcuts

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