Example code for Go generics.
$ go build -gcflags=-G=3
Go 1.18 or later
- Code-Hex/go-generics-cache An in-memory key:value store/cache library written in Go 1.18 generics
- genkami/dogs Dogs is a library that provides some useful types and functions borrowed from functional languages.
- makiuchi-d/tuple Definition of n-tuple structs using type parameters.
- samber/lo 💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
- mattn/go-result Something like unwrap in Rust.
- makiuchi-d/linq LINQ for Go with type parameters.
Go 言語にやってくる Generics は我々に何をもたらすのか
MIT
Yasuhiro Matsumoto (a.k.a. mattn)