Description
Genesis is a Go library of generic functions for channels, maps and slices, built for Go 1.18 and newer. It has more than 170 functions, including Filter, Map and Reduce for processing data, plus async versions such as FilterAsync, MapAsync and ReduceAsync for running work concurrently with a single call. It also has Grow and Shrink for reducing allocations, Permutations and Product for iteration, Shuffle and Sort for randomization, Any and All for flow control, and Range, Count and Cycle for generating sequences. The README says it uses generics, does not rely on code generation, has no dependencies except for testing, and is pure Go. It has sync and async versions of the main functions. The examples show finding a minimum in a slice of ints, doubling values, and checking status codes concurrently. The project is on GitHub, and the installation section shows how to add it to a Go module.…
Highlights
- 170+ generic functions for slices, maps and channels
- Sync and async versions of the main functions
- Pure Go with no dependencies outside tests
- No code generation
- Concurrent helpers such as MapAsync and FilterAsync
Ratings & Reviews
No ratings yet
Be the first to rate Genesis.
People also visit

golang-samber-ro
Reactive streams and event-driven programming in Golang using samber/ro
Genesis FAQ
What is Genesis?
A Go library of generic functions for working with slices, maps and channels, requiring Go 1.18 or newer.
Does it have dependencies?
No, apart from testing. The README says it is pure Go with no code generation.
Can it run work concurrently?
Yes. Async versions such as FilterAsync, MapAsync and ReduceAsync run work concurrently with a single call.
How do I install it?
Follow the installation section of the README, which adds the library to a Go module.
What are the best Genesis alternatives?
Popular alternatives to Genesis include Gophercises, Streamly and Gomponents. See all Genesis alternatives






