From 8a2f31e870149873dc24e064f1bd708c73171737 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 23 Feb 2025 17:04:01 -0700 Subject: [PATCH] values trim space --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d9ed5ab..ff15b32 100644 --- a/main.go +++ b/main.go @@ -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)