text

package
v0.0.0-...-bc04fb4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

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

type TablePrinter

type TablePrinter struct {
	Columns []Column
	Padding string
	// contains filtered or unexported fields
}

TablePrinter is a utility to print a text table where the columns are sized automatically to the content.

func NewTablePrinter

func NewTablePrinter(output io.Writer, columns []Column, padding string) *TablePrinter

func (*TablePrinter) Append

func (receiver *TablePrinter) Append(row []string)

func (*TablePrinter) Write

func (receiver *TablePrinter) Write() error

Jump to

Keyboard shortcuts

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