Categorygithub.com/chipaca/table
modulepackage
0.0.0-20220428150932-2c1ff39af250
Repository: https://github.com/chipaca/table.git
Documentation: pkg.go.dev

# README

table

create width-aware tables for the terminal and markdown and things like that

# Functions

New initializes a Table with reasonable defaults for the given headers.
NewGHFMD initializes a Table with reasonable defaults for the given headers to produce a table formatted for GitHub-flavoured markdown.

# Constants

ColumnAlignCenter would align things in the middle of a cell.
ColumnAlignLeft is the default.
ColumnAlignRight means to align things to the right of a cell, like for whole numbers.

# Structs

A Rule contains information for drawing a horizontal rule between the header and the data in the table.
A Table is a way to print tabular data to the terminal, where each column of data has a header, there is a minimum fixed gutter between columns (that can be empty), and all columns except the last are reasonably short such that no truncation is necessary to fit them, and a truncated last column, in the terminal.

# Type aliases

ColumnAlign is used to let columns align in different ways.