Skip to content

Releases: madkins23/go-utils

Updates to text table support

02 Jan 18:06
Compare
Choose a tag to compare

This release refactors the existing support (which has only existed for less than a month) and breaks normal Go update rules.

Remove 'Type assertion on errors fails on wrapped errors' warnings in msg/errors.go

01 Jan 18:40
781df5a
Compare
Choose a tag to compare
Merge pull request #1 from madkins23/tabular

Add text.TableDef

Add text.TableDef

31 Dec 19:10
781df5a
Compare
Choose a tag to compare

text.TableDef defines a simple table structure that can be used to generate:

  • a format string for the header row of the table,
  • a divider string for use below the header or in between table sections, and
  • a format string for the data rows of the table.

Fixes to text package

30 Dec 19:32
Compare
Choose a tag to compare

Refactor text/AddNumericSeparators() so that FormatUSD() can specify exactly two decimal digits but text/AddNumericSeparators() doesn't have to

Handle minus signs in text/FormatUSD() and text/AddNumericSeparators()

30 Dec 18:57
Compare
Choose a tag to compare
v1.42.1

Handle minus signs in text/FormatUSD() and text/AddNumericSeparators()

Break AddNumericSeparators() out from FormatUSD()

30 Dec 18:45
Compare
Choose a tag to compare
v1.42.0

Break AddNumericSeparators() out from FormatUSD()

Minor fixes

29 Dec 18:40
Compare
Choose a tag to compare
  • Fix CVS -> CSV in error message
  • Test for io.EOF during Read()

CSV reader changes

29 Dec 18:33
Compare
Choose a tag to compare
  • Field names don't have to be all columns and can be in any order
  • Only fields for named columns are returned
  • Different size records are not erroneous
  • Minor changes to field index and name lookups
  • Header row is processed during NewReader().

Fix mis-release

27 Dec 22:41
Compare
Choose a tag to compare

Previous release tagged 1.41.0 then edited to v1.41.0 but still not updating so just make a new one with some really minor changes.

Add CVS Reader

27 Dec 22:37
Compare
Choose a tag to compare

Add CSV Reader wrapped around encoding/csv.Reader to provide:

  • header-aware processing and
  • map object result (header -> value).