Releases: jedib0t/go-pretty
Releases · jedib0t/go-pretty
v6.0.6
v6.0.5
Bug-Fixes
- table
- Title row length should match rest of the table when shorter (thanks @FoamCactus)
- Adjust auto-index column IDs for for golang/go#32479 (thanks @eclipseo)
v6.0.4
v6.0.3
v6.0.2
Features
- table
- provide options in Style.HTML to control HTML rendering:
CSSClass
to set the CSS class-name for the table (default:go-pretty-table
)EmptyColumn
to control what to print for an empty column (default:
)EscapeText
to control whether to invokehtml.Escape
on all columns (default:true
)Newline
: to control whether\n
should be replaced, and with what (default:<br/>
)
- provide options in Style.HTML to control HTML rendering:
Deprecations
table
Old Functionality | Replacement |
---|---|
SetHTMLCSSClass |
Style().HTML.CSSClass |
v6.0.1
v6.0.0
v5.1.0
Features
- table
- support auto-merge of cells in a row with
RowConfig.AutoMerge
(2nd part of fix for #93)
- support auto-merge of cells in a row with
Bug-Fixes
- table
- text.Format* can now deal with escape sequences; (fix for #112)
Note
This will be the last dep
compatible release thanks to go mod
enforcing major versions above v1 to be part of the import path.
v5.0.1
Features
- table
- support auto-merge of cells in a column with
ColumnConfig.AutoMerge
- support title/caption using the <caption> tag on the table in HTML mode
- support auto-merge of cells in a column with
Bug-Fixes
- table
- support auto-index in CSV/HTML/Markdown modes
General
- update dependency
go-runewidth
tov0.0.9
to enhance emoji support
v5.0.0
Features
- table
AppendSeparator
to append a separator after the last appended rowColumnConfig.Hidden
flag to control the visibility of individual columnsColumnConfig.WidthMaxEnforcer
to customize howWidthMax
is applied/enforcedResetFooters
to reset and remove all appended footersResetHeaders
to reset and remove all appended headersResetRows
to reset and remove all appended rows- Deprecated interfaces have been removed; refer to the table below for details
- General
- Transition from
dep
togo mod
for dependency management
- Transition from
Deprecations
table
Old Functionality | Replacement |
---|---|
SetAlign |
SetColumnConfig with ColumnConfig.Align |
SetAlignFooter |
SetColumnConfig with ColumnConfig.AlignFooter |
SetAlignHeader |
SetColumnConfig with ColumnConfig.AlignHeader |
SetAllowedColumnLengths |
SetColumnConfig with ColumnConfig.WidthMax |
SetColors |
SetColumnConfig with ColumnConfig.Colors |
SetColorsFooter |
SetColumnConfig with ColumnConfig.ColorsFooter |
SetColorsHeader |
SetColumnConfig with ColumnConfig.ColorsHeader |
SetVAlign |
SetColumnConfig with ColumnConfig.VAlign |
SetVAlignFooter |
SetColumnConfig with ColumnConfig.VAlignFooter |
SetVAlignHeader |
SetColumnConfig with ColumnConfig.VAlignHeader |