Releases: madkins23/go-utils
Releases · madkins23/go-utils
Updates to text table support
Remove 'Type assertion on errors fails on wrapped errors' warnings in msg/errors.go
Merge pull request #1 from madkins23/tabular Add text.TableDef
Add text.TableDef
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
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()
v1.42.1 Handle minus signs in text/FormatUSD() and text/AddNumericSeparators()
Break AddNumericSeparators() out from FormatUSD()
v1.42.0 Break AddNumericSeparators() out from FormatUSD()
Minor fixes
- Fix
CVS
->CSV
in error message - Test for
io.EOF
duringRead()
CSV reader changes
- 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
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
Add CSV Reader
wrapped around encoding/csv.Reader
to provide:
- header-aware processing and
- map object result (header -> value).