🚀 "spec: generic methods for Go" has been accepted!
You will soon (1.27?) be able to declare (on concrete types only) methods that introduce type parameters, i.e. type parameters other than the ones (if any) that come from the method's receiver.
Since the inception of generics in Go (1.18), methods could not introduce type parameters. You had to resort to declaring package-scoped functions instead; code organisation and ergonomics typically suffered.
The proposal lifts this restriction for concrete types (though not for interface types).
https://github.com/golang/go/issues/77273#issuecomment-3962618141
