Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

The Go Blog 12 min read Announcement easyNovice

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. In the standard library, `encoding/json/v2` reached GA with up to 10× faster unmarshaling and now backs v1, and a GC-based goroutine leak profiler shipped. Performance work includes the Green Tea GC as default (10–40% less GC overhead), experimental SIMD packages, stack-allocated append backing stores and size-specialized allocation. The release also brings post-quantum TLS/HPKE/ML-DSA, a 7.5-hour urgent response to the eMudhra weak-key incident, and tooling built for humans and AI agents: `go fix` modernizers, `//go:fix inline`, gopls MCP and the pkg.go.dev API.

Related posts

  • A new Go API for JSON

    The Go Blog mediumAdept

    Go 1.27 makes encoding/json/v2 and encoding/json/jsontext stable. They fix long-standing v1 flaws that the Go 1 compatibility promise prevented fixing in place: acceptance of invalid UTF-8 and duplicate object names, nil slices and maps marshaling as null, case-insensitive field matching, and inconsistent MarshalJSON calls. jsontext handles streaming, syntax-only encoding and decoding of tokens and values. v2 builds on it with per-call options, caller-specified marshalers, and streaming MarshalJSONTo/UnmarshalJSONFrom methods. Unmarshal is up to 10x faster while Marshal is roughly at parity, and switching custom unmarshalers to the streaming interfaces can yield orders-of-magnitude gains, as in Kubernetes' kube-openapi.

  • How we avoided side-channels in our new post-quantum Go cryptography libraries

    Trail of Bits hardMaster

    Trail of Bits released pure-Go, open-source implementations of the NIST post-quantum signature schemes ML-DSA (FIPS-204) and SLH-DSA (FIPS-205), engineered to run in constant time. SLH-DSA is hash-based and straightforward, but ML-DSA's Decompose step divides by 2γ2, and secret-dependent division and branching are what enabled the KyberSlash timing attack. The fix replaces branches with mask-based constant-time conditional swaps and replaces division with a bit-by-bit constant-time long division, then speeds that up with Barrett reduction using precomputed reciprocals for the two fixed γ2 values plus two branchless correction steps.

  • Our Response To The eMudhra Key Disclosure Incident

    The Go Blog easyNovice

    Weak private keys on eight eMudhra-issued intermediate certificates made them recoverable in microseconds, letting attackers mint trusted TLS certificates for any domain. Because Go's own verifier on Linux has no revocation mechanism, the Go Security team shipped Go 1.27.3 and 1.26.10, its first URGENT-track security release, within about 7.5 hours of notification. The patch blocks certificates chaining to the compromised intermediates. Release tooling problems stretched the release itself to about 4.25 hours, so the team has streamlined the process, will pre-announce URGENT releases, and plans Linux revocation support, possibly via upki. Users should rebuild TLS-using binaries with the patched versions and can check exposure with go version -m or govulncheck.

  • How we reduced the size of our Agent Go binaries by up to 77%

    Datadog Engineering mediumAdept

    Datadog cut its Agent's Go binary sizes by up to 77% between versions 7.60.0 and 7.68.0 without removing features. The work combined three things: auditing imports with go list, goda and go-size-analyzer; moving code behind build tags or into separate packages; and re-enabling the linker's method dead code elimination. The last required finding reflect.MethodByName uses with -dumpdep and whydeadcode, patching about a dozen dependencies and forking text/template, which yielded 16–25% per binary. A single misplaced function had pulled 570 Kubernetes packages into trace-agent, about 36 MiB, and similar fixes upstream gave Kubernetes 16–37% reductions.

  • Goroutine Leak Profiles

    The Go Blog mediumAdept

    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. It works by modifying the garbage collector's mark phase. Only unblocked goroutines start as roots, and blocked goroutines are added iteratively when a primitive blocking them is reachable from a live goroutine. Any goroutine never reached is reported as leaked. The profile is exposed via runtime/pprof and /debug/pprof/goroutineleak and is demonstrated on an unbuffered-channel early-return leak. Limitations: it cannot see IO or syscall blocking, it misses leaks where a primitive stays reachable through globals, and pathological "daisy-chain" cases serialize marking with O(n²) inspection. Periodic, infrequent profiling is the recommended way to keep overhead low.

The quest for software engineering knowledge.

Look:
Layout: