use pointer of Tabdata, so there's only 1 copy around

This commit is contained in:
2022-10-03 13:10:23 +02:00
parent 65cbaddd5f
commit 3fd2e6ac2f
4 changed files with 20 additions and 19 deletions

View File

@@ -76,3 +76,13 @@ func PrepareModeFlags() error {
return nil
}
func trimRow(row []string) []string {
// FIXME: remove this when we only use Tablewriter and strip in ParseFile()!
var fixedrow []string
for _, cell := range row {
fixedrow = append(fixedrow, strings.TrimSpace(cell))
}
return fixedrow
}