To learn Go Generics I created a small library of useful collection functions that I find myself re-writing semi often

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • go-collections

    Generic utility functions for dealing with collections in go

  • filter

    Simple apply/filter/reduce package.

  • I had a quick look and the slices isn't very Go. Rob Pike implemented something similar a while ago actually https://github.com/robpike/filter and he says "Having written it a couple of years ago, I haven't had occasion to use it once. Instead, I just use "for" loops. You shouldn't use it either." Using for loops instead of map/filter/etc. is simpler and less harmful.

  • 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.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts