Go Generics

A forthcoming version of Go will support Generics.

At this moment, you are free to play with the current version of generics in Go and write your own Go code at https://go2goplay.golang.org/.

You can learn more about the next steps of Generics in Go at https://blog.golang.org/generics-next-step.

According to the current schedule

… the earliest that generics could be added to Go would be the Go 1.17 release, scheduled for August 2021

Last, you can read the Featherweight Go paper here. That paper describes a design for generics in Go inspired by previous work on Featherweight Java by Igarashi, Pierce, and Wadler.