Example code for Go generics.
$ go build -gcflags=-G=3
Go 1.17 or later
- go-generics-cache An in-memory key:value store/cache library written in Go 1.18 generics
- dogs Dogs is a library that provides some useful types and functions borrowed from functional languages.
- tuple Definition of n-tuple structs using type parameters.
Go 言語にやってくる Generics は我々に何をもたらすのか
MIT
Yasuhiro Matsumoto (a.k.a. mattn)