table

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 16 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToStar added in v0.1.0

func BoolToStar(obj interface{}) (string, error)

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 FormatJSONCompact added in v0.0.3

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

func FormatSpew added in v0.1.0

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

func FormatStackScopedName

func FormatStackScopedName(defaultNamespace string) func(interface{}, interface{}, interface{}) (string, error)

func FormatYAML

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

func Graph added in v0.1.0

func Graph(value int) (string, error)

func SimpleFormat

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

func ToArray added in v0.1.0

func ToArray(s []string) (string, error)

func ToJSON added in v0.1.0

func ToJSON(data interface{}) (map[string]interface{}, error)

func WriterFlags

func WriterFlags() []cli.Flag

Types

type FormatFunc

type FormatFunc interface{}

type Writer

type Writer interface {
	Write(obj interface{})
	Close() error
	Err() error
	AddFormatFunc(name string, f FormatFunc)
}

func NewWriter

func NewWriter(values [][]string, config WriterConfig) Writer

type WriterConfig added in v0.1.0

type WriterConfig interface {
	IDs() bool
	Quiet() bool
	Format() string
	Writer() io.Writer
	WithWriter(writer io.Writer)
}

Jump to

Keyboard shortcuts

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