cilium / tetragon

eBPF-based Security Observability and Runtime Enforcement
https://tetragon.io
Apache License 2.0
3.66k stars 369 forks source link

Switch to Go 1.23+ stdlib `maps`/`slices` packages #3080

Closed tklauser closed 1 week ago

tklauser commented 2 weeks ago

Use the maps and slices packages from the Go standard library instead of the respective golang.org/x/exp packages.

Also add a linter check enforcing use of these packages.

tklauser commented 2 weeks ago

Thanks! Especially for the linter check, very nice! I need to read about this new iterator feature, I didn't know.

In case you didn't see it yet, https://go.dev/blog/range-functions is a nice introduction to the new iterators (also called range-over-func) in Go 1.23.