table

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2013 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align int
const (
	Left Align = iota
	Right
)

type CellConf

type CellConf struct {
	Align    Align
	PadRight []byte
	PadLeft  []byte
}

type Table

type Table struct {
	CellConf []CellConf
	Data     [][]string
}

func New

func New(size int) *Table

func NewWithConf

func NewWithConf(conf []CellConf) *Table

func (*Table) Add

func (t *Table) Add(cells ...string) *Table

func (*Table) String

func (t *Table) String() string

Jump to

Keyboard shortcuts

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