Generics are coming!
Generics enabled by default in Go tip
https://go-review.googlesource.com/c/go/+/343732/
We already have some packages coming with this features too.
maps
https://github.com/golang/go/discussions/47330
sets
https://github.com/golang/go/discussions/47331
slices
https://github.com/golang/go/discussions/47203
I'm really excited to this addition. It will make code conciser as we won't need to implement this type of functions ourselves anymore.