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

got the wrong id when unmarshel a stract with an Int64 id #190

Open
LatrecheYasser opened this issue Apr 2, 2020 · 1 comment
Open

got the wrong id when unmarshel a stract with an Int64 id #190

LatrecheYasser opened this issue Apr 2, 2020 · 1 comment

Comments

@LatrecheYasser
Copy link

LatrecheYasser commented Apr 2, 2020

i get a wrong id when Unmarshal json object to a struct with id of int64, in general this id is the true id in the db - 1 !!
for now i think the problem is with a conversion somewhere there, when the lib converts the string id from the json object to an int64 id !!! but i'm not sure.
is there any solution for this (any other solution without changing the type of the id into a string). ?

@aren55555
Copy link
Contributor

Are you able to provide example go code for this?

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