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

📝 update(types): use float32 for coins #6

Merged
merged 1 commit into from
Jul 5, 2022
Merged

Conversation

layou233
Copy link
Contributor

@layou233 layou233 commented Jul 5, 2022

调用UserGetInfo()时,发生如下错误:

json: cannot unmarshal number 44.3 into Go struct fiel
d UserInfo.coins of type int

显示我有44.3个硬币,硬币是有小数的,这里应该用float32作为Coins的类型。

@iyear
Copy link
Owner

iyear commented Jul 5, 2022

/lgtm

@iyear iyear merged commit 4f53092 into iyear:v0 Jul 5, 2022
@layou233 layou233 deleted the patch-1 branch July 5, 2022 14:06
@layou233 layou233 restored the patch-1 branch July 5, 2022 14:06
@layou233 layou233 deleted the patch-1 branch July 5, 2022 14:06
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

Successfully merging this pull request may close these issues.

2 participants