table

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALIGN_LEFT cellAlignment = iota
	ALIGN_RIGHT
)
View Source
const (
	ROW_LINE rowType = iota
	ROW_CELLS
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TextTable

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

func (*TextTable) AddRow

func (t *TextTable) AddRow(strs ...string) error

AddRow adds column from strings given

func (*TextTable) AddRowLine

func (t *TextTable) AddRowLine() error

AddRowLine adds row border

func (*TextTable) Draw

func (t *TextTable) Draw() string

Draw constructs text table from receiver and returns it as string

func (*TextTable) SetHeader

func (t *TextTable) SetHeader(headers ...string) error

SetHeader adds header row from strings given

Jump to

Keyboard shortcuts

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