Go 1.28's Draft Notes Read Like an Incident Retrospective
Table of Contents
The draft release notes for Go 1.28 are public now — the development freeze has begun, RC1 is tentative, and February 2027 is the target. I read them the way I read anything that ships into my production binary: looking for what will break, what will save me, and what tells me something about the people maintaining the language.
Here’s my honest first impression: this is not a feature release. Strip out the composite-literal sugar and the FIPS alias, and Go 1.28 reads like an incident retrospective written by the standard library team. Almost every change closes a hole where a program could be wrong quietly. As someone whose blog this month is basically a shelf of postmortems about things that failed silently — a cron wake that never fired, a voice pipeline that died before transcription — I feel personally addressed.
The conversion ban: a vet check with a decade on the clock
The language change everyone will notice first:
string('a') // fine: untyped rune constant
string(r) // fine if r's underlying type is rune or byte
string(97) // compile error in Go 1.28: 97 is not a rune constant
Converting an arbitrary integer to a string type is no longer valid — only byte, rune, or untyped rune constants survive. The notes are explicit that this “lifts a long-existing vet check to the language level” (issue #3939).
This is the right call, and it’s also a small admission. string(intValue) has been one of Go’s most reliable foot-guns: it doesn’t give you "97", it gives you "a" — the UTF-8 encoding of code point 97 — and if your integer happens to exceed the valid rune range you get "\ufffd", the replacement character. The vet check has flagged this for years, which means for years, thousands of builds ran with go vet skipped, deferred to CI, or blessed with //nolint by someone who didn’t believe the warning. Making it a compile error is the Go team saying that a correctness trap wide enough to need a linter is wide enough to belong in the grammar. I’ve been bitten by the runtime version of this bug — I wrote about byte-reversed WAV magics that killed every mic call at STT, where the failure was also “bytes that looked like data until you checked what they actually were.”
The migration story is the good part: if your code passes go vet today — and mine does, on every push since the lint gate landed — Go 1.28 is a no-op. If it doesn’t, the compiler is about to file bugs for you.
Two new vet analyzers for the loops that lie
The vet additions are my favorites: a scannererr analyzer that flags for scanner.Scan() loops with no scanner.Err() check after the loop, and a sqlrowserr analyzer doing the same for for rows.Next().
If you’ve never been burned by this, here’s the crime scene. scanner.Scan() returns false both when the input ended cleanly and when a read error blew up mid-stream. rows.Next() returns false both when the result is genuinely empty and when iteration died on row three of a thousand. Without the post-loop Err() check, a truncated stream is indistinguishable from a small result. Your program doesn’t crash. It reports success on half the data. It “completes” the invoice import with 400 of 4,000 rows and nobody pages anyone.
Checking my own house against the new analyzers, the loops I care about pass: the pi RPC bridge’s JSON-lines loop holds its scanner in pibridge.go and calls b.stdout.Err() after the read loop closes; the forge SSE stream captures streamErr = scanner.Err() before deciding whether the stream ended honestly; every rows.Next() in the manager packages is followed by rows.Err(). But I want to be precise about why they pass: not because I’m disciplined, because I learned each check the hard way, once, in production. That’s the argument for these analyzers existing — the knowledge “always check Err after the loop” currently lives in postmortems and scar tissue. Vet making it a gate means the next engineer (human or agent — most of my commits are the latter) inherits the lesson for free, on the first build, instead of on the first bad deploy.
The memory profile that admits the heap is a lie
The runtime change I’ll actually use: a new pprof profile type named memory, available through runtime/pprof and at /debug/pprof/memory, that breaks down the process’s resident set size.
The notes call out the confusion by name, and they’re right to: “Go developers are often confused when the operating system reports much more memory usage than the heap profile shows.” inuse_space tells you what your program is holding; the OS tells you what it’s paying for. The gap — runtime metadata, stack pools, freed-but-unreturned spans, page allocator fragmentation — has been archaeology, requiring GODEBUG=madvdontneed=1 folklore and reading /proc/<pid>/smaps like tea leaves. A first-class RSS breakdown at a pprof endpoint turns that into a curl:
import _ "net/http/pprof" // + your internal listener
// during an incident:
// curl -s localhost:6060/debug/pprof/memory?debug=1
For anyone operating long-lived single-binary services — API servers, schedulers, agents — this is the missing second panel on the memory dashboard. The goroutine leak posts teach you to ask “who’s still running?”; this one answers “who’s still holding pages?”
The rest, briefly
GOAMD64=local builds for your exact micro-architecture (handy for a homelab fleet, dangerous for anything you ship — your binary now has an invisible CPU floor). GOFIPS140=certified now pins the FIPS 140-3 module to v1.26.0 with CMVP Certificate #5581 — compliance folks will care, I won’t, but I noted it so you don’t have to. And the language change with fewer friends: composite literals can omit their type wherever the type is inferable from assignment context — var origin Point = {} and var ptr *Point = {1, 2}. I’ll take it in nested literals where []Config{{Name: "a"}} already reads fine; I’m less sure about var ptr *Point = {1, 2} replacing a &Point{} whose ampersand was at least trying to tell you something.
What to do before February
Three moves, none of which require RC1:
- Turn on every analyzer you have today. Run
go vet -vettoolwith the latestgolangci-lint(itsrowserrcheckcovers the same ground assqlrowserr) and clear the list. Whatever the 1.28 analyzers will flag, you want already flagged and fixed. - Fix your vet debt now, while it’s advisory. If
go vetoutput surprises you today, that surprise is your 1.28 migration budget. Mine is zero, because the lint gate I set up in October fails the branch build — the F-002 scheduler work merged through it with zero vet surprises, which is the whole point of a gate. - Add the memory profile to your incident runbook. Try
pprof.Profile("memory")on tip in a staging build, and put the/debug/pprof/memoryURL next to the heap and goroutine endpoints you already keep. The day the OS says your agent is eating 1.2 GB and the heap says 200 MB, the difference is either a bug or a lie, and now you can tell which one in one request.
Go 1.28 is shaping up to be the release where the language finished grading its own homework. The best kind of release, as far as I’m concerned: the one where the biggest news is all the ways your code will no longer be allowed to fail silently.