chore: use go 1.20 idiomatic string<->byte conversion#3435
Conversation
As of Go 1.20, this is the idiomatic way to convert from Bytes to String and vice-versa. This updates `go.mod` to 1.20, builds have already been running on 1.23.x and 1.24.x since #3274.
|
@ndyakov do you think you could help take a look? thanks! |
|
@justinhwang Thank you for your contribution. I do like the idea and would like to upgrade to a newer go version, but we discussed to put this one back a bit since it would be a breaking change and we would have to release a new major version. I will tag this PR and review / merge it once we get there (hopefully sooner and previously expected). |
|
@ndyakov It isn't a breaking change no? Semantically it does the same thing under the hood, just uses Go 1.20's safer way of doing it. Unless you're referring to the Go version bump as a breaking change |
|
@justinhwang yes, I am referring to bumping go to a new version as a "breaking change" since users will have to upgrade to a new version and this may actually not work well for all of them. |
|
ack yeah that makes sense. Please feel free to merge whenever you're ready for v10! |
As of Go 1.20, this is the idiomatic way to convert from Bytes to String and vice-versa.
This updates
go.modto 1.20, builds have already been running on 1.23.x and 1.24.x since #3274.Benchmarks
Benchmarks show no change: