values trim space

main
Bel LaPointe 2025-02-23 17:04:01 -07:00
parent 9ec40cb366
commit 8a2f31e870
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func main() {
if i < len(fields) {
k = fields[i]
}
lineResult[k] = line[i]
lineResult[k] = strings.TrimSpace(line[i])
}
b, _ := json.Marshal(lineResult)
fmt.Printf("%s\n", b)