Documentation ¶
Index ¶
Constants ¶
View Source
const ( RowModeTruncate = "truncate" RowModeWrap = "wrap" RowModeOverflow = "overflow" // default )
Variables ¶
View Source
var Logger *log.Logger
View Source
var TABLE_MAX_WIDTH = 120
View Source
var TextEllipsis = "…"
Functions ¶
Types ¶
type TableView ¶
type TableView struct { Out io.Writer Columns []string ColumnWidths []int ColumnAlignments []int MinColumnWidth int MinEmptyValueColumnWidth int MaxColumnWidth int ColumnPadding int Data gjson.Result TableData [][]string EnableColor bool RowMode string NumberFormatter numbers.NumberFormatter }
TableView renders a table in the terminal
func (*TableView) GetHeaders ¶ added in v2.18.0
Click to show internal directories.
Click to hide internal directories.