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

Replace golang.org/x/exp with stdlib #156

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Juneezee
Copy link
Contributor

The experimental functions in golang.org/x/exp/slices are now available in the standard library in Go 1.21.

The new built-in function clear is the replacement for maps.Clear from golang.org/x/exp/maps.

Reference: https://go.dev/doc/go1.21#slices
Reference: https://go.dev/ref/spec#Clear

The experimental functions in `golang.org/x/exp/slices` are now
available in the standard library in Go 1.21.

The new built-in function `clear` is the replacement for `maps.Clear`
from `golang.org/x/exp/maps`.

Reference: https://go.dev/doc/go1.21#slices
Reference: https://go.dev/ref/spec#Clear
Signed-off-by: Eng Zer Jun <[email protected]>
@amirmalka amirmalka merged commit 4b74aec into kubescape:main Jan 17, 2025
4 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.

2 participants