table

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package table implements a thin wrapper around text/tabwriter to keep formatting consistent across cli.

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 text table.

func New

func New(w io.Writer) Table

New returns a new Table, writing to w.

func (Table) Flush

func (t Table) Flush() error

Flush flushes the written data to the writer.

func (Table) Row

func (t Table) Row(format string, a ...any)

Row adds a row to the Table.

Jump to

Keyboard shortcuts

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