formatters

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTerminalWidthFn

func SetTerminalWidthFn(f func() uint)

Types

type CsvFormatter

type CsvFormatter struct{}

func (*CsvFormatter) FormatOutput

func (f *CsvFormatter) FormatOutput(model interface{}) (res string, err error)

type JsonFormatter

type JsonFormatter struct{}

func (*JsonFormatter) FormatOutput

func (f *JsonFormatter) FormatOutput(model interface{}) (res string, err error)

type TableFormatter

type TableFormatter struct{}

func (*TableFormatter) FormatOutput

func (f *TableFormatter) FormatOutput(model interface{}) (res string, err error)

type TextFormatter

type TextFormatter struct{}

func (*TextFormatter) FormatOutput

func (f *TextFormatter) FormatOutput(model interface{}) (res string, err error)

Jump to

Keyboard shortcuts

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