table

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 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)

AddRow adds column from strings given

func (*TextTable) AddRowLine

func (t *TextTable) AddRowLine()

AddRowLine adds row border

func (*TextTable) DrawInBuffer

func (t *TextTable) DrawInBuffer(buf *bytes.Buffer) error

func (*TextTable) SetHeader

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

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