printers

package
v0.0.0-...-46800f1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTabWriter

func NewTabWriter(out io.Writer) *tabwriter.Writer

Types

type JsonPrinter

type JsonPrinter struct{}

func (*JsonPrinter) PrintResource

func (p *JsonPrinter) PrintResource(r interface{}, w io.Writer) error

type NdjPrinter

type NdjPrinter struct{}

func (*NdjPrinter) PrintResource

func (p *NdjPrinter) PrintResource(r interface{}, w io.Writer) error

type ResourcePrinter

type ResourcePrinter interface {
	PrintResource(interface{}, io.Writer) error
}

type ResourcePrinterFunc

type ResourcePrinterFunc func(interface{}, io.Writer) error

func (ResourcePrinterFunc) PrintResource

func (fn ResourcePrinterFunc) PrintResource(r interface{}, w io.Writer) error

type TablePrinter

type TablePrinter struct{}

func (*TablePrinter) PrintResource

func (p *TablePrinter) PrintResource(r interface{}, w io.Writer) error

Jump to

Keyboard shortcuts

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