Generics introduces a whole new kind of interface to Go: one based not on methods, but on type sets. Let’s explore the possibilities.
All tagged interfaces
Generics introduces a whole new kind of interface to Go: one based not on methods, but on type sets. Let’s explore the possibilities.
Freedom is nothing without constraints, and Go’s generics gives us a powerful way to build polymorphic types and functions constrained by type sets. Let’s geek out.