filter and map functions
From a mathematics and science genius:

&quot;If I have seen further it is by standing on the shoulders of Giants.&quot; Isaac Newton
Wikipedia: Standing on the shoulders of giants

For Go giants, you might start with Rob Pike.

GitHub - robpike/filter: Simple apply/filter/reduce package.
I wanted to see how hard it was to implement this sort of thing in Go, with as nice an API as I could manage. It wasn't hard.
Having written it a couple of years ago, I haven't had occasion to use it once. Instead, I just use &quot;for&quot; loops.
You shouldn't use it either.

Take Rob Pike's advice and use &quot;for&quot; loops.