Documentation
¶
Index ¶
- Constants
- func GetTerminalSize() (int, int)
- func NewBorderStyle(outer int, inner int) *borderStyle
- func NewSimpleTable(data *TableData, style *borderStyle) *simpleTable
- type TableData
- func (tableData *TableData) AddRow(row ...interface{}) *TableData
- func (tableData *TableData) GetColsNum() int
- func (tableData *TableData) GetData() *[][]string
- func (tableData *TableData) GetHeader() *[]string
- func (tableData *TableData) GetRowsNum() int
- func (tableData *TableData) SetData(data [][]interface{}) *TableData
- func (tableData *TableData) SetHeader(titles ...string) *TableData
Constants ¶
View Source
const ( ALIGN_LEFT = iota ALIGN_CENTER ALIGN_RIGHT BORDER_SINGLE_THIN BORDER_SINGLE_THICK BORDER_DOUBLE BORDER_NONE )
Configuration of the table.
Variables ¶
This section is empty.
Functions ¶
func GetTerminalSize ¶
func NewBorderStyle ¶
func NewSimpleTable ¶
func NewSimpleTable(data *TableData, style *borderStyle) *simpleTable
NewSimpleTable object constructor
Types ¶
type TableData ¶
type TableData struct {
// contains filtered or unexported fields
}
func (*TableData) GetColsNum ¶
Get number of columns in the table
func (*TableData) GetRowsNum ¶
Get number of rows in the table
Click to show internal directories.
Click to hide internal directories.