Am I reading this correctly? The standard library has no built in function to get a slice of keys from a map? You need to iterate every single time and build up an extra list??

@mauve the #golang 1.21 release which will be released soon (days or weeks, it’s at rc3 currently I think) will include the `maps` module in stdlib, which includes a `Keys()` implementation: pkg.go.dev/maps@master#Keys

Follow

@fansipans Heck yeah, good to hear! I'm glad go has been improving over time.

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.