cstable

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 6 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 {
	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