table

package
v0.0.0-...-7ecd0ca Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 1 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 {
	// NumRows is the number of rows the table has. Each column must have exactly this number of rows.
	NumRows int
	// contains filtered or unexported fields
}

Table is a table that can be rendered to markdown. It supports a column based data API and pads columns to a constant width.

func (*Table) AddColumn

func (t *Table) AddColumn(header string, rows []string)

func (*Table) ToBuffer

func (t *Table) ToBuffer(b *bytes.Buffer)

Jump to

Keyboard shortcuts

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