Help us shape the future of Go! Take the 2026 Go Developer Survey

printers

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintTable

func PrintTable(list []Printable) error

Types

type PrintFormat

type PrintFormat int
const (
	Human PrintFormat = iota
	Table
)

type PrintOptions

type PrintOptions struct {
	WithHeaders bool
}

type Printable

type Printable interface {
	GetFormats() map[PrintFormat]struct{}
	Print(format PrintFormat, options PrintOptions) error
}

Jump to

Keyboard shortcuts

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