package table
import "github.com/onsi/gomega/gmeasure/table"
Index ¶
- Variables
- type AlignType
- type Cell
- type Divider
- type Row
- func R(args ...interface{}) *Row
- func (r *Row) AppendCell(cells ...Cell) *Row
- func (r *Row) Render(widths []int, totalWidth int, tableStyle TableStyle, isLastRow bool) string
- type Table
- type TableStyle
Variables ¶
var DefaultTableStyle = TableStyle{ Padding: 1, VerticalBorders: true, HorizontalBorders: true, MaxTableWidth: 120, MaxColWidth: 40, EnableTextStyling: true, }
Types ¶
type AlignType ¶
type AlignType uint
type Cell ¶
func C ¶
func (Cell) Width ¶
type Divider ¶
type Divider string
type Row ¶
func R ¶
func R(args ...interface{}) *Row
func (*Row) AppendCell ¶
func (*Row) Render ¶
type Table ¶
type Table struct { Rows []*Row TableStyle TableStyle }
func NewTable ¶
func NewTable() *Table
func (*Table) AppendRow ¶
func (*Table) Render ¶
type TableStyle ¶
type TableStyle struct { Padding int VerticalBorders bool HorizontalBorders bool MaxTableWidth int MaxColWidth int EnableTextStyling bool }
Source Files ¶
- Version
- v1.28.1
- Published
- Oct 23, 2023
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 5 days ago –
Tools for package owners.