go-functional
go-functional is a library that offers functional programming in Go using generics (by BooleanCat)
go-monads
experimental implementation of basic monads based on go2 generics draft (by OlegStotsky)
go-functional | go-monads | |
---|---|---|
6 | 3 | |
297 | 114 | |
- | - | |
8.6 | 0.0 | |
10 days ago | about 2 years ago | |
Go | Go | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-functional
Posts with mentions or reviews of go-functional.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-02.
- Write functional-like code with Go
- Functional Programming in Go 1.18
- I've been working on offering a functional-like experience with Go 1.18's generics
-
Golang FP for error handling?
In my hobby project I've solved this in Go 1.18 by stealing Rust's Result[T] type and implementing it in Go: https://github.com/BooleanCat/go-functional/
- A functional programming library for Go 1.18
- I wrote a library to demonstrate functional programming in Go 1.18
go-monads
Posts with mentions or reviews of go-monads.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-02.
- Go-monads:a library that implements basic Haskell monads
- go-monads - first generic monad library for go based on Haskell monads
-
Golang FP for error handling?
Using an ADT like Either should work There is an implementation here https://github.com/OlegStotsky/go-monads Also this article looks interesting https://awalterschulze.github.io/blog/post/monads-for-goprogrammers/
What are some alternatives?
When comparing go-functional and go-monads you can also consider the following projects:
gogu - A comprehensive, reusable and efficient concurrent-safe generics utility functions and data structures library.
algo2 - Some algorithms written using Go generics.
underscore - 🌟 Useful functional programming helpers for Go
gtl - Golang Template Library (GTL). Common data structures using Golang generics.
fp-go - fp-go is a collection of Functional Programming helpers powered by Golang 1.18+ generics.
lo - 💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
fuego - Functional Experiment in Golang
valor - Go option and result types that optionally contain a value
functools - Functional tools in Go 1.18 using newly introduced generics