Radar · Go · Archive · Week 24 · Jun 8 – 14, 2026
x/net/http2: move frame operations to x/net/http2/http2frame
Worth knowingstdlib
- What changed
- The proposal moves the
Framertype and all frame‑related types fromgolang.org/x/net/http2into a newgolang.org/x/net/http2/http2framepackage. - Production impact
- The source does not say.
- Try it
- Import
golang.org/x/net/http2/http2frameand usehttp2frame.Framerinstead of the oldhttp2.Framer. - Source
- github.com/golang/go/issues/67819
Understand it, then run it
The Framer type and many frame‑related types live in the golang.org/x/net/http2 package. Most Go developers use HTTP/2 at a higher level, so they rarely touch those types. The change moves all those frame types into a new package called golang.org/x/net/http2/http2frame. After the move, code that needs to read or write raw HTTP/2 frames imports http2frame instead of http2.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed