Any major projects using generics?

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

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

    💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)

  • I'm not sure what you mean with "major" but I've been using https://github.com/samber/lo more often than I expected when I first heard about it.

  • graph

    A library for creating generic graph data structures and modifying, analyzing, and visualizing them.

  • Not a major project, but my purely generic graph library gained some traction recently.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • connect-go

    Discontinued Moved to https://github.com/connectrpc/connect-go

  • core

    Backend server API handling user mgmt, database, storage and real-time component (by staticbackendhq)

  • it depend what "major" means, I use them in my Firebase alternative Go project and in the go package: https://pkg.go.dev/github.com/staticbackendhq/core/backend

  • surf

    CLI Text Search across your infrastructure platforms, Universal Ctrl+F for infra (by Isan-Rivkin)

  • I created this project and its using generics https://github.com/Isan-Rivkin/surf

  • golang-set

    A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.

  • golang-set is a set implementation used by docker, ethereum and others. 2.8k stars on GitHub. Pretty popular project. Not sure if it counts as major. https://github.com/deckarep/golang-set

  • concurrent-map

    a thread-safe concurrent map for go

  • For libraries I use at work, cmap has a v2 using generics. I think that's a fairly widely used library. The events library we use is updated, but not released. When I get a chance, planning on looking on moving to hooks, which does have released generics support.

  • 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
  • go-events

    :mega: Pure nodejs EventEmmiter for the Go Programming Language.

  • For libraries I use at work, cmap has a v2 using generics. I think that's a fairly widely used library. The events library we use is updated, but not released. When I get a chance, planning on looking on moving to hooks, which does have released generics support.

  • hooks

    Simple, type-safe hook system to enable easier modularization of your Go code. (by mikestefanello)

  • For libraries I use at work, cmap has a v2 using generics. I think that's a fairly widely used library. The events library we use is updated, but not released. When I get a chance, planning on looking on moving to hooks, which does have released generics support.

  • test

    A modern generic testing assertions library for Go (by shoenig)

  • https://github.com/shoenig/test is a test case assertions library (like testify) centered around generics

  • verify

    Extensible, type-safe, fluent assertion Go library. (by fluentassert)

  • https://github.com/fluentassert/verify another assertion library

  • btree

    BTree provides a simple, ordered, in-memory data structure for Go programs.

  • gocache

    ☔️ A complete Go cache library that brings you multiple ways of managing your caches

  • We are using https://github.com/eko/gocache in production projects.

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