Skip to content

Commit 999319e

Browse files
committed
Might as well use float64; user can change if desired
1 parent 16d1c31 commit 999319e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

json-to-go.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ function jsonToGo(json, typename)
127127
if (val % 1 === 0)
128128
{
129129
if (val > -2147483648 && val < 2147483647)
130-
return "int"
130+
return "int";
131131
else
132-
return "int64"
132+
return "int64";
133133
}
134134
else
135-
return "float32"
135+
return "float64";
136136
case "boolean":
137137
return "bool";
138138
case "object":

0 commit comments

Comments
 (0)