taon

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Columns added in v0.2.0

type Columns []string

Columns allows to parse comma separated list of columns

func (*Columns) Set added in v0.2.0

func (c *Columns) Set(value string) error

Set is a setter for Columns

func (*Columns) String added in v0.2.0

func (c *Columns) String() string
type Header []string

Header is an alias for slice of strings used to define headers

type Table

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

Table datastructure represents ascii table

func NewTable

func NewTable(r io.Reader, w io.Writer) *Table

NewTable initializes and returns new Table

func (*Table) Render

func (t *Table) Render() error

Render generates ascii table

func (*Table) SetColumns

func (t *Table) SetColumns(c Columns)

SetColumns to restrict output to only given columns

func (*Table) SetModeMarkdown

func (t *Table) SetModeMarkdown()

SetModeMarkdown to draw table as MD table

Jump to

Keyboard shortcuts

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