cstable

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldColorize added in v1.8.0

func ShouldColorize(wantColor string) bool

ShouldColorize reports whether output should be colorized for the given --color value.

Types

type Table

type Table struct {
	Writer table.Writer
	// contains filtered or unexported fields
}

func New

func New(out io.Writer, wantColor string) *Table

func NewLight

func NewLight(output io.Writer, wantColor string) *Table

func (*Table) AddRow

func (t *Table) AddRow(str ...string)

func (*Table) Render

func (t *Table) Render()

func (*Table) SetAlignment

func (t *Table) SetAlignment(align ...text.Align)

func (*Table) SetHeaderAlignment

func (t *Table) SetHeaderAlignment(align ...text.Align)

func (*Table) SetHeaders

func (t *Table) SetHeaders(str ...string)

func (*Table) SetRowLines

func (t *Table) SetRowLines(rowLines bool)

Jump to

Keyboard shortcuts

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