Generics

Open-source projects categorized as Generics

Top 23 Generic Open-Source Projects

  1. lo

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

    Project mention: Fun with Go Iterators | news.ycombinator.com | 2024-10-10

    Might be interesting to make a library that competes with https://github.com/samber/lo?

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. lancet

    A comprehensive, efficient, and reusable util function library of Go.

  4. golang-set

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

  5. mo

    🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)

  6. rueidis

    A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.

    Project mention: Maintain chat history in generative AI apps with Valkey | dev.to | 2024-07-01

    It's important to note that it's possible to use any Redis-compatible client with Valkey. I used the go-redis client, but (at the time of writing) there is work underway to build Valkey specific client libraries. Check the Valkey GitHub org to take look at the forks of existing Redis client libraries such as valkey-go (corresponding to rueidis), iovalkey (corresponding to ioredis), Jackey (corresponding to jedis) etc. These are very early days (at the time of writing), and it will be interesting to see the progress here!

  7. gomacro

    Interactive Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros

    Project mention: Faster interpreters in Go: Catching up with C++ | news.ycombinator.com | 2025-04-05

    do a type analysis on each expression you want to "compile" to a closure, and instantiate the correct closure for each type combination.

    Here is a pseudocode example, adapted from https://github.com/cosmos72/gomacro/blob/2ff796e3da1057c005c...

    /* return a closure that computes x + y when executed /

  8. do

    ⚙️ A dependency injection toolkit based on Go 1.18+ Generics.

    Project mention: Do: A dependency injection toolkit based on Go 1.18 Generics | news.ycombinator.com | 2024-07-24
  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. pie

    🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance. (by elliotchance)

  11. gen

    Type-driven code generation for Go (by clipperhouse)

  12. generic

    A collection of generic data structures written in Go.

    Project mention: Go Is a Well-Designed Language | news.ycombinator.com | 2025-01-08

    Not sure how I didn't find this before, but https://github.com/zyedidia/generic looks like a decent library.

    Although there are some decent libraries out there for this kind of thing, my complaint mostly stems from the fact that a lot of existing code doesn't involve generics yet.

    I think I remember skimming an article about for range loops on Hacker News a while back, but again, my main complaint is still that existing code exists in a way that doesn't incorporate all these new features yet.

  13. goderive

    Derives and generates mundane golang functions that you do not want to maintain yourself

  14. Time

    🕰 Type-safe time calculations in Swift (by dreymonde)

  15. ttlcache

    An in-memory cache with item expiration and generics

  16. Time

    Type-safe time calculations in Kotlin, powered by generics. (by kizitonwose)

  17. go-generics-cache

    A key:value store/cache library written in Go generics. LRU, LFU, FIFO, MRU, Clock support.

  18. generic-records

    Generically derive traversals, lenses, and prisms.

  19. enum

    Type safe enums for Go without code generation or reflection (by orsinium-labs)

    Project mention: Enums in Go | news.ycombinator.com | 2024-07-12
  20. Arrow Meta

    Functional companion to Kotlin's Compiler

  21. Observable

    The easiest way to observe values in Swift. (by roberthein)

  22. awesome-go

    Go stuff that inspires awe (by rwxrob)

  23. genesis

    All generic functions for Go you ever need! (by life4)

  24. CC

    A small, ergonomic generic container library.

    Project mention: Show HN: Convenient Containers – ergonomic generics in C | news.ycombinator.com | 2025-04-23
  25. staticvec

    Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Generics discussion

Log in or Post with

Generics related posts

Index

What are some of the best open-source Generic projects? This list will help you:

# Project Stars
1 lo 19,362
2 lancet 5,015
3 golang-set 4,504
4 mo 2,955
5 rueidis 2,646
6 gomacro 2,233
7 do 2,090
8 pie 1,999
9 gen 1,427
10 generic 1,302
11 goderive 1,257
12 Time 1,069
13 ttlcache 1,047
14 Time 979
15 go-generics-cache 474
16 generic-records 441
17 enum 424
18 Arrow Meta 403
19 Observable 375
20 awesome-go 360
21 genesis 349
22 CC 294
23 staticvec 268

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Go is
the 4th most popular programming language
based on number of references?