table

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

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

Table is a lightweight wrapper around text/tabwriter for printing CLI tables.

func New

func New(w io.Writer) *Table

func (*Table) Columns

func (t *Table) Columns(cols ...string)

func (*Table) Flush

func (t *Table) Flush() error

func (*Table) Row

func (t *Table) Row(data ...string)

Jump to

Keyboard shortcuts

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