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

Go 1.22 upgrade check list #3310

Open
roman-khimov opened this issue Feb 9, 2024 · 1 comment
Open

Go 1.22 upgrade check list #3310

roman-khimov opened this issue Feb 9, 2024 · 1 comment
Labels
blocked Can't be done because of something enhancement Improving existing functionality go Go language related I4 No visible changes S2 Regular significance U4 Nothing urgent

Comments

@roman-khimov
Copy link
Member

  • for loops ranging over integers/constants are too good to be unused, searching for := 0 finds a lot of them
  • replace math/rand with math/rand/v2, changes there are not significant for us, but still we better be up to date
  • cmp.Or can be considered, but I'm not sure we have any cases for it
  • AppendDecode and AppendEncode can be useful for base64/hex manipulations
  • slices.Concat can be considered

See https://go.dev/doc/go1.22 also.

@roman-khimov
Copy link
Member Author

append(bytes.Clone()...) is a nice pattern to search for wrt slices.Concat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Can't be done because of something enhancement Improving existing functionality go Go language related I4 No visible changes S2 Regular significance U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

1 participant