Skip to content

Commit c0a991f

Browse files
remitly-brandonrmholt
authored andcommitted
Fix bug in mostSpecificPossibleGoType (#41)
1 parent 0a93777 commit c0a991f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-to-go.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function jsonToGo(json, typename)
200200
return typ1;
201201
else if (typ1.substr(0, 3) == "int"
202202
&& typ2.substr(0, 5) == "float")
203-
return typ1;
203+
return typ2;
204204
else
205205
return "interface{}";
206206
}

0 commit comments

Comments
 (0)