Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Commit 923e2d6

Browse files
committed
Integerify raw []byte values
1 parent 46360ad commit 923e2d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ func main() {
100100
}
101101

102102
if *output {
103+
for i := range rec.Fields {
104+
f := &rec.Fields[i]
105+
switch v := f.Value.(type) {
106+
case []byte:
107+
f.RawValue = integers(v)
108+
f.Value = nil
109+
}
110+
}
103111
bs, _ := json.Marshal(rec)
104112
fmt.Println(string(bs))
105113
}

0 commit comments

Comments
 (0)