grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.97k stars 3.46k forks source link

refactor: replace experimental `maps` and `slices` with stdlib #15051

Open Juneezee opened 19 hours ago

Juneezee commented 19 hours ago

What this PR does / why we need it:

The experimental functions are now available in the standard library since Go 1.23 ^1.

The only difference is that maps.Keys and maps.Values in the standard library return an iterator, while maps.Keys and maps.Values in the golang.org/x/exp package return a slice.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Checklist