Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today. Learn more →
Top 23 Go Generic Projects
-
Project mention: Functional Programming Library for Golang by IBM | news.ycombinator.com | 2023-08-17
A simple alternative is the combination of:
- https://github.com/samber/lo
- https://github.com/samber/mo
The split is also nice as you can choose to just use the generic convenience functions from lo without the more FP related things from mo.
-
golang-set
A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.
If it were true, there wouldn't be any 3rd-party libs for Go and everybody used just the stdlib. For instance, if you need a set, you can use https://github.com/deckarep/golang-set . Of course, you can do it with the stdlib with map, but if you don't want to do that, use golang-set . I think Python has a much larger stdlib and yet, Python has tons of 3rd-party packages.
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
-
gomacro added macros and generics several years before generics reached release.
-
rueidis
A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.
Project mention: Show HN: A Cache-Aside Pattern Implementation Enhanced by Client Side Caching | news.ycombinator.com | 2023-07-16 -
Project mention: Functional Programming Library for Golang by IBM | news.ycombinator.com | 2023-08-17
A simple alternative is the combination of:
- https://github.com/samber/lo
- https://github.com/samber/mo
The split is also nice as you can choose to just use the generic convenience functions from lo without the more FP related things from mo.
-
pie
🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance. (by elliotchance)
-
Mergify
Tired of breaking your main and manually rebasing outdated pull requests?. Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.
-
-
You might also consider using other data structures instead of slices, for example, a linked list can be grown without an issue.
-
I found https://github.com/awalterschulze/goderive but haven't used anything like it besides mockgen
-
Project mention: v3.1.0 of ttlcache - an in-memory cache with item expiration and generics | /r/golang | 2023-08-25
-
-
go-generics-cache
A key:value store/cache library written in Go generics. LRU, LFU, FIFO, MRU, Clock support.
-
Project mention: Iterium - Generic Channel-based Iterators (opensource project) | /r/golang | 2023-03-13
what's new/diff from https://github.com/life4/genesis ?
-
Project mention: Enum: Type safe enums for Go without code generation or reflection | news.ycombinator.com | 2023-08-30
-
The closest I’ve seen is https://github.com/kamalshkeir/kago it’s not only building the restful part but also the ORM using Go generics to match día go behavior. It even supports migrations
-
-
-
orm
A lightweight yet powerful, fast, customizable, type-safe object-relational mapper for the Go programming language. (by golobby)
-
gostream
A Go port of the Java Streams API. Type-safe and functional Go Streams processing for Go 1.18+.
-
https://github.com/alecthomas/assert As an assertion library
-
-
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Go Generics related posts
- v3.1.0 of ttlcache - an in-memory cache with item expiration and generics
- Functional Programming Library for Golang by IBM
- A lightweight Golang generics library that provides Map, Reduce and more
- A lightweight Golang generics library that provides Map, Reduce and more
- A lightweight Golang generics library that provides Map, Reduce and more
- Querying and transforming object graphs in Go
- samber/lo utility package based on generics
-
A note from our sponsor - SonarLint
www.sonarlint.org | 22 Sep 2023
Index
What are some of the best open-source Generic projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | lo | 13,287 |
2 | golang-set | 3,486 |
3 | lancet | 3,007 |
4 | gomacro | 2,077 |
5 | rueidis | 1,877 |
6 | mo | 1,792 |
7 | pie | 1,719 |
8 | do | 1,250 |
9 | generic | 1,187 |
10 | goderive | 1,129 |
11 | ttlcache | 714 |
12 | swiss | 514 |
13 | go-generics-cache | 341 |
14 | genesis | 305 |
15 | enum | 204 |
16 | kago | 183 |
17 | functools | 175 |
18 | async | 144 |
19 | orm | 143 |
20 | gostream | 132 |
21 | assert | 118 |
22 | lru | 116 |
23 | go-monads | 108 |