In today's article, we will experiment with generics in Go, and their latest form, Type Parameters.
Before we start, let's take a quick look at the proposal's history.
History of generics in Go
Generics have been some of the most desired language features since Go's inception. While the Go team never explicitly rejected them, they also did not have a good way to solve the problem of introducing generics to the language without making Go look and feel less Go-like.
That was until August 2018, when the Go team introduced the notion of Contracts and started a big discussion with the community abo
Experimenting with Go Type Parameters (Generics) in GoLand
by