-
FuncFrog
Stream api (kind of) implementation for go, other useful functions and packages to use go in a functional way
func GetIDs(...) ([]string, ...) { <...> users := GetUsers(...) return ff.Map(users, domain.UserGetID).Do(), ... } ``` Now it's that easy! Furthermore you may like to write gogenerate function to generate such methods for each domain struct. Also there are more cool features, minimal-lock parallelism, error handling etc. in the libtaty https://github.com/koss-null/FuncFrog Cheers!
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
FuncFrog
Stream api (kind of) implementation for go, other useful functions and packages to use go in a functional way (by mattayes)
Yeah, standard implementation meant using a vanilla for loop. I created a benchmark matching the example given above, here were my results:
-