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 38 · Sep 14 – 20, 2026

go/types: add StrictlyComparable function

Worth knowingstdlib

What changed
A new function StrictlyComparable(T Type) bool was added to go/types. It reports whether values of type T are strictly comparable, as defined by the Go spec.
Production impact
The source does not say.
Try it
Use go/types to analyze a type and call StrictlyComparable to see if it returns true.
Source
github.com/golang/go/issues/72059

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