Top stories

Go 1.27 is released

The Go team released Go 1.27, a major update to the language, toolchain, runtime and standard library. Language changes include support for generic methods and allowing struct literals to initialize fields in nested or embedded structs directly. The release also includes other enhancements across the Go ecosystem, with binary archives and installers available from the download page.

  • Our Response To The eMudhra Key Disclosure Incident

    The Go Security team says it shipped an urgent runtime patch after learning of a public key infrastructure compromise involving certificates issued by eMudhra. Mozilla had added eight eMudhra intermediate certificates to OneCRL on October 17, blocking their use in Firefox; six were for TLS and two for code signing. Go says the keys were trivially weak and that it released its patch within about seven and a half hours of notification, in its first-ever URGENT security release.

  • Image: Go Blog

    A new Go API for JSON

    The Go team has made the new `encoding/json/v2` and `encoding/json/jsontext` packages stable and generally available in Go 1.27. The packages follow an experimental API introduced last year and were refined after additional feedback. They are intended to address longstanding problems with Go’s established `encoding/json` support, which has been part of the standard library since before Go 1.0.

Latest

  1. Image: Go Blog

    Go Turns 17

    The Go team marked the 17th anniversary of Go's open source release on November 10, reviewing a year that saw Go 1.26 ship in February and Go 1.27 in August. Austin Clements wrote that Go aims to stay grounded in simplicity, reliability, efficiency and compatibility while adapting to new hardware, production workloads and developer workflows. The team says its investments increasingly also provide guardrails and context for AI coding assistants and agents.

  2. Help set Go's priorities for next year

    The Go team has opened its 2026 developer survey to learn how developers use Go and what challenges they face, with responses intended to guide the team’s priorities. Last year, 5,379 developers responded, and 33% cited following Go best practices and idioms as their top frustration. The team says it has since shipped a rewritten go fix in Go 1.26 and added more modernizers in Go 1.27. The survey takes about 10–20 minutes, remains open through November 3, and results are expected in early 2027.

  3. Image: Go Blog

    Interactive refactoring in gopls

    The Go team is introducing interactive refactoring in gopls, its Go language server, using a capability proposed for the Language Server Protocol. The feature is intended to let developers automate code transformations interactively in modern editors and IDEs.

  4. Better HTTP/1 connection reuse

    The Go Blog says HTTP/1 requests can run substantially faster in Go 1.27 because of improved connection reuse. Its example makes 100 requests to index.golang.org in about 150 milliseconds on Go 1.27, compared with about 710 milliseconds on Go 1.26, using HTTP/1. The article begins by explaining that opening a connection incurs TCP and usually TLS setup costs, which can be avoided when connections are reused.

  5. Arch-specific SIMD in Go

    Go 1.27 adds experimental SIMD APIs for arm64 and wasm, extending the amd64 support introduced in Go 1.26. Developers can use the new APIs by building with GOEXPERIMENT=simd; they are defined in the simd/archsimd package. The lower-level archsimd layer provides access to operations specific to an architecture, while using API names and abstractions that do not directly mirror hardware instructions. Compiler optimizations can handle some architecture-specific behavior without exposing it directly.

  6. Platform-independent SIMD in Go

    The Go Blog describes experimental, platform-independent SIMD APIs added across Go 1.26 and Go 1.27. SIMD lets modern CPUs apply the same operation to vectors of data in one instruction, accelerating work such as cryptography, data processing and AI; Go's Green Tea garbage collector also uses it to scan memory. Previously, Go programs generally needed assembly to access SIMD, limiting its use to performance-critical kernels. The APIs cover amd64 in Go 1.26 and arm64 NEON and wasm in Go 1.27, while addressing differences in platform operations and vector representation.

  7. Size-Specialized Memory Allocation

    The Go team says Go 1.27 speeds up memory allocation for objects of 80 bytes or less, with allocations potentially 20–30% faster and allocation-heavy programs up to 1% faster. The runtime adds specialized allocation functions for selected sizes, allowing it to make assumptions that reduce work and improve optimization. Heap allocation flows through mallocgc, while compiler-generated calls to newobject pass the object’s size and whether it contains pointers. Those inputs determine much of the allocator’s work.

  8. Goroutine Leak Profiles

    The Go team explains how goroutine leaks occur and how developers can investigate them using leak profiles. A goroutine is leaked when it remains blocked on a synchronization primitive or an operating-system operation with no possible way to resume. Accumulated leaks can degrade performance by consuming memory and adding work for the garbage collector, particularly when memory limits are in use.

  9. Generic Methods

    A Go Blog article examines generic methods, a capability that the Go generics proposal initially left out. Generics introduced type parameters for functions and types, allowing reusable definitions such as one linked-list type or sorting function to replace separate versions for different data types. The article explains that generic methods raise implementation-efficiency challenges, setting up its discussion of why the language design treated them differently.

  10. Introducing the pkg.go.dev API

    The Go team introduced an official API for pkg.go.dev, allowing programmatic queries of metadata about published Go modules. The interface responds to community demand from developers building tools, IDE integrations and automated workflows, which previously relied on web scraping. The API is also intended to give AI-assisted coding tools direct access to package information, and the team says the service is designed for stability.

  11. Type Construction and Cycle Detection

    The Go team explains improvements to type construction and cycle detection in the Go 1.26 type checker. The change is intended to reduce corner cases in how the compiler validates types and operations, without producing an observable change for typical Go users. The work also prepares the way for future improvements to the language’s type-checking system.

  12. Allocating on the Stack

    A description of some of the recent changes to do allocations on the stack instead of the heap.