-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: replace golang.org/x/exp/maps with standard library maps package #14943
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
chore: replace golang.org/x/exp/maps with standard library maps package #14943
Conversation
Signed-off-by: shota3506 <[email protected]>
635b6e3 to
c480ffb
Compare
|
Thanks @shota3506 - is your aim to run through all of |
|
hi @Joibel ✋ But yes, I agree it would be a great idea to run modernize in linting. Would it be okay if I do that as a separate task? |
|
Let me add modernize analyzer after next golangci-lint minor version release |
Oh, that's nice that it's being added there, hadn't seen that. |
Separate task would be best, yes please. Possibly split up some of the fixes it provides from actually enabling it in linting too, just so the PRs are more reviewable. |
|
@Joibel Okay, I’ll open some PRs to address modernize alerts in the existing codebase before enabling it in lint. This PR is independent of that, so please review it when you have a moment. (I assume the CI errors are unrelated to these changes?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this
Signed-off-by: Alan Clucas <[email protected]>
Signed-off-by: shota3506 <[email protected]>
Head branch was pushed to by a user without write access
…ge (argoproj#14943) Signed-off-by: shota3506 <[email protected]> Signed-off-by: Alan Clucas <[email protected]> Co-authored-by: Alan Clucas <[email protected]>
Replace the experimental
golang.org/x/exp/mapspackage with the standard librarymapspackageMotivation
Modifications
mapsandslicespackage instead of experimental packageVerification
Documentation