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

unable to cast <nil> of type <nil> to float64 #141

Closed
bep opened this issue May 11, 2022 · 0 comments
Closed

unable to cast <nil> of type <nil> to float64 #141

bep opened this issue May 11, 2022 · 0 comments
Assignees

Comments

@bep
Copy link
Collaborator

bep commented May 11, 2022

The ToInt variants supports nil, so that error does not make much sense.

@bep bep self-assigned this May 11, 2022
bep added a commit to bep/cast that referenced this issue May 11, 2022
* Allow strings/json.Number with just zeroes after the decmial point to be converted to integer`
* Allow nil in ToFloat*
* Remove some test duplication
* replace testify with quicktest
* Enable integer and float conversion of time.Weekday values

Fixes spf13#139
Fixes spf13#141
bep added a commit to bep/cast that referenced this issue May 11, 2022
* Allow strings/json.Number with just zeroes after the decmial point to be converted to integer`
* Allow nil in ToFloat*
* Remove some test duplication
* replace testify with quicktest
* Enable integer and float conversion of time.Weekday values

Fixes spf13#139
Fixes spf13#141
bep added a commit to bep/cast that referenced this issue May 11, 2022
* Allow strings/json.Number with just zeroes after the decmial point to be converted to integer`
* Allow nil in ToFloat*
* Remove some test duplication
* replace testify with quicktest
* Enable integer and float conversion of time.Weekday values

Fixes spf13#139
Fixes spf13#141
bep added a commit to bep/cast that referenced this issue May 11, 2022
* Allow strings/json.Number with just zeroes after the decmial point to be converted to integer`
* Allow nil in ToFloat*
* Remove some test duplication
* replace testify with quicktest
* Enable integer and float conversion of time.Weekday values

Fixes spf13#139
Fixes spf13#141
@bep bep closed this as completed in 2b0eb0f May 11, 2022
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

1 participant