On the subject of generics in Go, this is useful reading as it lays out all the possible solutions/pitfalls: https://github.com/golang/proposal/blob/master/design/15292-generics.md
On the subject of generics in Go, this is useful reading as it lays out all the possible solutions/pitfalls: https://github.com/golang/proposal/blob/master/design/15292-generics.md