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

Minor changes necessary to run go test under 1.15 #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cite-reader
Copy link

In Go 1.15, converting from non-byte or -rune integer types directly to a string became a go vet warning, enabled by default when running go test. Goutils was using this conversion correctly, so mechanically wrapping an additional conversion to rune (as suggested by the Go 1.15
changelog) at the warning sites allows go test to run without errors on recent Go toolchains.

In Go 1.15, converting from non-byte or -rune integer types directly to
a string became a `go vet` warning, enabled by default when running
`go test`. Goutils was using this conversion correctly, so mechanically
wrapping an additional conversion to `rune` (as suggested by the Go 1.15
changelog) at the warning sites allows `go test` to run without errors
on recent Go toolchains.
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.

1 participant