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

Default value does not work when get float64 for a key not existed #140

Conversation

EastMacro2020
Copy link
Collaborator

When I used the archaius.GetFloat64 api with a default value to get the value of the key which does not exist actually, I found the default value did not work, and I got a 0 instead. I found the reason that the cast.ToFloat64 omits the error

@EastMacro2020 EastMacro2020 self-assigned this Feb 22, 2021
@tianxiaoliang tianxiaoliang merged commit d114333 into go-chassis:master Feb 22, 2021
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