tablewriter

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 0

README

tablewriter

Go Reference

Print data with a CLI table format.

Install

go get github.com/altipla-consulting/tablewriter

Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using make gofmt.

License

MIT License

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
}

func NewConsoleTable

func NewConsoleTable(header []string, opts ...TableOption) *Table

func NewTable

func NewTable(writer io.Writer, header []string, opts ...TableOption) *Table

func (*Table) Render

func (table *Table) Render()

func (*Table) Write

func (table *Table) Write(row []string)

type TableOption

type TableOption func(*Table)

func AlignRight

func AlignRight(cols ...int) TableOption

Jump to

Keyboard shortcuts

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