Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query with int64 will lose accuracy #250

Open
Tracked by #5
Grayon opened this issue Jun 23, 2020 · 1 comment
Open
Tracked by #5

query with int64 will lose accuracy #250

Grayon opened this issue Jun 23, 2020 · 1 comment

Comments

@Grayon
Copy link

Grayon commented Jun 23, 2020

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.

@wklken
Copy link

wklken commented Jan 7, 2022

wklken#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants