This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 35 · Aug 24 – 30, 2026

Generic Methods in Go 1.27

Worth knowinglanguage

What changed
Go 1.27 introduces generic methods, allowing methods on types to be parameterized with type parameters.
Production impact
The source does not say.
Try it
Write a type with a generic method and compile with Go 1.27.
Source
go.dev/blog/generic-methods

Understand it, then run it

Go 1.27 adds generic methods. Before this, only functions and type definitions could have type parameters. Now a method on a concrete type can also be parameterized, so you can write a method that works for any element type. For example, a linked‑list type can expose a Map method that turns a list of int into a list of string without writing a new function for each pair of types.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed