Our great sponsors
-
FuncFrog
Stream api (kind of) implementation for go, other useful functions and packages to use go in a functional way
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
FuncFrog
Stream api (kind of) implementation for go, other useful functions and packages to use go in a functional way (by mattayes)
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!
Yeah, standard implementation meant using a vanilla for loop. I created a benchmark matching the example given above, here were my results: