Skip to content

refactor: replace golang.org/x/exp with stdlib #2563

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LesCyber
Copy link

@LesCyber LesCyber commented Mar 6, 2025

Description

These experimental packages are now available in the Go standard library since Go 1.21 and Go 1.23:

golang.org/x/exp/maps -> maps (https://go.dev/doc/go1.21#maps)
The key difference is that maps.Keys in the golang.org/x/exp/maps package return a slice, whereas maps.Keys in the standard library return an iterator.

Reference: https://go.dev/doc/go1.23#iterators

Signed-off-by: LesCyber <andi4cing@gmail.com>
@LesCyber LesCyber requested a review from a team March 6, 2025 07:47
@github-actions github-actions bot added the C:Testing Assigned automatically by the PR labeler label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:Testing Assigned automatically by the PR labeler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant