-
Couldn't load subscription status.
- Fork 52
Use modern Go constructs #215
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
Conversation
|
|
@HadrienPatte Thanks for this and apologies for not reviewing it. At the moment we are focused on delivering some major features that will significantly improve the UX. Once we are done with those we will prioritize reviewing and merging this PR. |
|
Seems odd, upgrading go to 1.23 in the meantime without merging all those nice modernizations first... |
|
@canonical/rocks gentle bump on this PR ;) |
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 this PR and apologies for taking long to review. Even though it looks simple, every change to slices.Delete and slices.Clone has to be inspected manually because they have slightly different semantics than the code that was written before them (i.e. they now respect nilness).
While this is approved, it will still remain low priority so it might get picked up in the next couple of weeks. Thanks again for contributing!
|
@HadrienPatte can you push an empty commit |
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 these!
Use modern Go constructs:
interface{}withany(available since go1.18)rangeloop (available since go1.22)slicespackage (available since go1.21)