"Generic Methods in Go 1.27"
- When Go 1.18 introduced Generics in 2022, it brought generic type parameters to functions and structs, but left out methods.
- With the release of Go 1.27, this long-standing limitation has been removed.
- Methods can now define their own type parameters without adding them to the receiving struct.
Unverified
- When Go 1.18 introduced Generics in 2022, it brought generic type parameters to functions and structs, but left out methods.
- With the release of Go 1.27, this long-standing limitation has been removed.
- Methods can now define their own type parameters without adding them to the receiving struct.
Sources: Dominik