Go Turns 17
Go's 17th anniversary recap covers Go 1.26 and 1.27. On the language side, it adds generic methods, self-referential constraints, `new` with an initial value, and nested struct literal keys.
Go's 17th anniversary recap covers Go 1.26 and 1.27. On the language side, it adds generic methods, self-referential constraints, `new` with an initial value, and nested struct literal keys.
Go 1.27 makes encoding/json/v2 and encoding/json/jsontext stable.
Weak private keys on eight eMudhra-issued intermediate certificates made them recoverable in microseconds, letting attackers mint trusted TLS certificates for any domain.
gopls now supports interactive refactoring through a proposed Language Server Protocol extension, co-designed with the Dart team, that lets language servers ask the user for input before computing edits.
Go 1.27's net/http.Transport now asynchronously drains unread HTTP/1 response bodies, up to 50 ms or 256 KB, before closing them.
Go 1.27 extends the experimental architecture-specific SIMD API (simd/archsimd, enabled with GOEXPERIMENT=simd) from amd64 to arm64 NEON and wasm 128-bit SIMD.
Go 1.27 adds an experimental, size-agnostic `simd` package, loosely modeled on Highway for C++.
Go 1.27 adds size-specialized variants of the runtime's mallocgc for allocations of 80 bytes or fewer, one per span class (size class plus pointer/no-pointer), making these allocations 20-30% faster and allocation-heavy programs up to 1% faster.
Go 1.27 adds a goroutineleak profile that finds goroutines permanently blocked on channels or sync primitives (Mutex, RWMutex, WaitGroup, Cond) in running programs, including production, with few or no false positives.
Go pipelines are built as stages of goroutines connected by channels, with fan-out to spread work across workers and fan-in (via a sync.WaitGroup-based merge) to combine results.
Go's GIF decoder works by chaining small io.Reader implementations together.
Wire is a compile-time dependency injection tool for Go, built for Go Cloud so applications can swap provider-specific implementations (such as S3 vs GCS behind blob.Bucket) without hand-rewriting initialization code.