tableprinter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TablePrinter

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

TablePrinter formats data as aligned columns.

func New

func New(out io.Writer) *TablePrinter

New creates a new TablePrinter.

func (*TablePrinter) AddRow

func (t *TablePrinter) AddRow(fields ...string)

AddRow adds a row of fields to the table.

func (*TablePrinter) Render

func (t *TablePrinter) Render() error

Render outputs the formatted table.

Jump to

Keyboard shortcuts

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