table

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: Apache-2.0 Imports: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCreated

func FormatCreated(data interface{}) (string, error)

func FormatFirst

func FormatFirst(data, data2 interface{}) (string, error)

func FormatJSON

func FormatJSON(data interface{}) (string, error)

func FormatStackScopedName

func FormatStackScopedName(data, data2 interface{}) (string, error)

func FormatYAML

func FormatYAML(data interface{}) (string, error)

func SimpleFormat

func SimpleFormat(values [][]string) (string, string)

func WriterFlags

func WriterFlags() []cli.Flag

Types

type FormatFunc

type FormatFunc interface{}

type Writer

type Writer struct {
	HeaderFormat string
	ValueFormat  string

	Writer *tabwriter.Writer
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(values [][]string, ctx *cli.Context) *Writer

func (*Writer) AddFormatFunc

func (t *Writer) AddFormatFunc(name string, f FormatFunc)

func (*Writer) Close

func (t *Writer) Close() error

func (*Writer) Err

func (t *Writer) Err() error

func (*Writer) Write

func (t *Writer) Write(obj interface{})

Jump to

Keyboard shortcuts

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