gorequest
gorequest copied to clipboard
query with int64 will lose accuracy
func TestInt64(t *testing.T) {
s := gorequest.New().Query(map[string]int64{"a":6673221165400540161})
t.Log(s.QueryData)
}
output
a_test.go:14: map[a:[6673221165400540000]]
json.Unmarshal an int64 to interface{}, it will be converted to a float64.
https://github.com/wklken/gorequest/pull/8