Author: Paolo Lulli <paolo@lulli.net>
Right separator with commas on unpack
client/main.go | 7 ++++---
diff --git a/client/main.go b/client/main.go index e48659d360b0e653e0a6001337e73b23042f33ec..20e68222d7fdb6a134f78ca7cc8a59d48f971060 100644 --- a/client/main.go +++ b/client/main.go @@ -243,7 +243,7 @@ for _, k := range keys { fmt.Printf("\"%s\"%s", k, recordSeparator) } - fmt.Printf("%s", rowSeparator) + //fmt.Printf("%s", rowSeparator) for _, row := range composedList { rowMap, errNoValue := mapFromBase64(row.Value) if errNoValue { @@ -251,9 +251,10 @@ return } metricTime := formattedUtcTimeInSec(metric.Mtime) - fmt.Printf("%s%s", metricTime, recordSeparator) + fmt.Printf("%s", metricTime) + //fmt.Printf("%d%s", metric.Mtime, recordSeparator) for _, k := range keys { - fmt.Printf("\"%v\"%s", rowMap[k], recordSeparator) + fmt.Printf("%s\"%v\"", recordSeparator, rowMap[k]) } fmt.Printf("%s", rowSeparator) }