Skip to content

Releases: jedib0t/go-pretty

v6.0.6

20 Jan 18:28
a74acfa
Compare
Choose a tag to compare

Features

  • progress
    • ShowETA(): show ETA for individual trackers

v6.0.5

01 Oct 21:08
9875be5
Compare
Choose a tag to compare

Bug-Fixes

v6.0.4

11 Jun 05:05
88e6896
Compare
Choose a tag to compare

Features

  • table
    • SuppressEmptyColumns(): hide all columns that have no content in any of the rows

v6.0.3

27 May 20:10
fccf2a0
Compare
Choose a tag to compare

Fixes

  • text:
    • remove dependency on go-openapi/strfmt which indirectly added a lot of unnecessary transitive dependencies

Thanks @titanous!

v6.0.2

17 May 17:28
3a6002f
Compare
Choose a tag to compare

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 invoke html.Escape on all columns (default: true)
      • Newline: to control whether \n should be replaced, and with what (default: <br/>)

Deprecations

table

Old Functionality Replacement
SetHTMLCSSClass Style().HTML.CSSClass

v6.0.1

16 May 20:17
3554271
Compare
Choose a tag to compare

Bug-Fixes

  • table
    • Footer rows should not have a auto-generated index with SetAutoIndex

v6.0.0

15 May 18:12
b2f1544
Compare
Choose a tag to compare

Make go-pretty compatible with go mod.

You should now be able to run: go get -u github.com/jedib0t/go-pretty/v6@v6.0.0.

v5.1.0

15 May 17:52
246ce90
Compare
Choose a tag to compare

Features

  • table
    • support auto-merge of cells in a row with RowConfig.AutoMerge (2nd part of fix for #93)

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

10 May 19:08
e6e6696
Compare
Choose a tag to compare

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

Bug-Fixes

  • table
    • support auto-index in CSV/HTML/Markdown modes

General

  • update dependency go-runewidth to v0.0.9 to enhance emoji support

v5.0.0

08 May 16:48
fe76e12
Compare
Choose a tag to compare

Features

  • table
    • AppendSeparator to append a separator after the last appended row
    • ColumnConfig.Hidden flag to control the visibility of individual columns
    • ColumnConfig.WidthMaxEnforcer to customize how WidthMax is applied/enforced
    • ResetFooters to reset and remove all appended footers
    • ResetHeaders to reset and remove all appended headers
    • ResetRows to reset and remove all appended rows
    • Deprecated interfaces have been removed; refer to the table below for details
  • General
    • Transition from dep to go mod for dependency management

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