|
|
|
|
|
by PhilippGille
892 days ago
|
|
This wasn't feasable without generics, and now with generics they're already adding some convenience functions to the stdlib, like in the slices package. For map, reduce etc it's not in the stdlib yet, but you can use https://pkg.go.dev/github.com/samber/lo |
|