We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ToBoolE function can not recognize int64 nor int32, which result in false return I hope it will be fixed soon.
The text was updated successfully, but these errors were encountered:
I believe I also ran into this issue, for example:
package main import ( "fmt" "github.com/spf13/cast" ) func main() { fmt.Printf("its %t\n", cast.ToBool(float64(1))) }
prints its false. I've worked around it by casting to an int before bool.
its false
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
ToBoolE function can not recognize int64 nor int32, which result in false return
I hope it will be fixed soon.
The text was updated successfully, but these errors were encountered: