tablewriter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name         string
	SeparateLine bool
	Lines        int
}

func Col

func Col(name string) Column

func NewLineCol

func NewLineCol(name string) Column

type TableWriter

type TableWriter struct {
	// contains filtered or unexported fields
}

func New

func New(cols ...Column) *TableWriter

Unlike text/tabwriter, this works with CLI escape codes, and allows for info

in separate lines

func (*TableWriter) Flush

func (w *TableWriter) Flush(out io.Writer) error

func (*TableWriter) Write

func (w *TableWriter) Write(r map[string]interface{})

Jump to

Keyboard shortcuts

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