v4.2.0
This minor release contains a bunch of content:
ProgressWriter
@Haraguroicha found a plethora of go-routine-unsafe variable accesses in Progress Writer. This release contains the fixes for the same and prevents all identified unsafe accesses and sets up tests to check for race-conditions in the build process.
Thanks @Haraguroicha!
TableWriter
@Issif requested functionality to control the colorization of individual rows based on the content of the row and also for the capability to output the color coding in RenderHTML()
output. This release contains these features and some more:
- introduce a new interface SetColumnConfigs() to control every option for a column:
- Alignment (horizontal, vertical)
- Colors
- Transformation
- Width (minimum, maximum)
- mark older interfaces for deprecation:
- SetAlign(), SetAlignFooter(), SetAlignHeader()
- SetAllowedColumnLengths()
- SetColors(), SetColorsFooter(), SetColorsHeader()
- SetVAlign(), SetVAlignFooter(), SetVAlignHeader()
- support
RowPainter
to determine the colors to be used on an entire row overriding ColumnConfig settings - support text.Colors in HTML using similarly named CSS classes that can be customized by end-user
Thanks @Issif for the feedback!