Skip to content

Conversation

@kolyshkin
Copy link
Contributor

Use newer Go features (any, maps, slices, and for range for integers). See individual commits for details.

The keyword any is available since Go 1.18.

Signed-off-by: Kir Kolyshkin <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
This form is available since Go 1.22.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin
Copy link
Contributor Author

I need a second review/LGTM here.
@opencontainers/cgroups-maintainers PTAL

@dims @odinuge @haircommander alas you're not opencontainers.org members so can't be included into the above alias. Nevertheless PTAL

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I think there's some linters for this in recent versions of golangci-lint as well

@thaJeztah thaJeztah merged commit 479d74f into opencontainers:main Apr 24, 2025
13 checks passed
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.

4 participants