Cloud
Cloud
Go 1.27 Generic Methods: Give Your Types Their Own Map in Ten Minutes
Go 1.27 lets a method declare its own type parameters, so Map can live on your type instead of floating in the package. A 40-line lab, how inference works, and the interface rule that still holds.
Ada Brackett4 min read