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

GetInt report an error #8

Closed
itMuYou opened this issue Sep 10, 2020 · 2 comments · Fixed by #9
Closed

GetInt report an error #8

itMuYou opened this issue Sep 10, 2020 · 2 comments · Fixed by #9

Comments

@itMuYou
Copy link

itMuYou commented Sep 10, 2020

The int number that I configured in the JSON file but when I get it with GetInt it will say value %!s(float64=20) (float64) is not int

@miladrahimi
Copy link
Member

Could you please attach the config file that includes the value you are trying to get?

@itMuYou
Copy link
Author

itMuYou commented Sep 15, 2020

{
"fault" : {
"host" : "127.0.0.1",
"port" : "6379",
"password" : "",
"database" : 2
},
"upgrade" : {
"host" : "127.0.0.1",
"port" : "6379",
"password" : "",
"database" : 3
}
}

This is my format,I need database to be of type int, but what I actually get is float

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

Successfully merging a pull request may close this issue.

2 participants