gtl
go-monads
Our great sponsors
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.
gtl
- Golang Template Library(WIP) using generics
-
Go 1.18 Released
I started a template library some time ago. It needs a bit of a clean up, but for starters it's quite decent.
https://github.com/dgrr/gtl
go-monads
- 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?
go_chainable - With generics, allowing chainable .Map(func(...)).Reduce(func(...)) syntax in go
algo2 - Some algorithms written using Go generics.
functional-go - This library is inspired by functional programming - Clojure
lo - 💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
go-generic-optional - Implementation of Optionals in Go using Generics
gogu - A comprehensive, reusable and efficient concurrent-safe generics utility functions and data structures library.
genny - Elegant generics for Go
functools - Functional tools in Go 1.18 using newly introduced generics
mo - 🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)
b
dogs - Make Go functional with dogs