Back to JetBrains

Go 1.26 Release Party

JetBrainsFebruary 19, 20261h 38m
In a Nutshell

Go 1.26 introduces major features including a new built-in expression that allocates and initializes in one step, `errors.AsType[T]` for compile-time safe error type checking, and the "green tea" garbage collector that reduces CPU cache misses for 5%+ gains on small-object workloads. The release adds production-ready goroutine leak detection via `runtime/pprof`, `runtime/secret` for cryptographic memory clearing, `slog` multi-handlers, iterator methods across `reflect`, and `go fix` for automatic modernization. Performance improvements double I/O throughput, while new runtime metrics and `bytes.Buffer.Peek` enhance observability and buffer handling.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

The Go 1.26 live stream celebrates the release of the new version of the language. The moderator admits to knowing only how Go is spelled and will rely on two experts to carry the discussion. The audience is invited to share their favorite features from Go 1.26 in the chat.

Alex Hughes is a software engineer from Brazil working in leadership roles, participating in conferences and workshops, and writing books about Go. Anton works with Go both professionally and in his free time, preparing interactive tours for Go releases over the past few years.

Alex identifies type checking for errors as his favorite feature, noting Go now has an error as type concept. Anton highlights four features: goroutine leak detection (experimental), the new cmd capability in Go, performance improvements including I/O doubling in performance, and the ability to identify the cause of a signal cancellation for troubleshooting and debugging.

The release is referred to as Go 1.26. The stream is recorded and will be available on YouTube afterward. A giveaway includes a six-month extended GoLand trial using the code "go release party." GoLand 1.26 support was prepared in the latest version. Anton describes Go 1.26 as the biggest release seen, with the sheer number of features packed into it being astonishing.

The new built-in previously allocated a variable of a specific type and required separate assignment. In Go 1.26, new accepts any expression including specific values, structs, or function call results. The Go runtime allocates the variable, assigns the value, and returns a pointer. This is particularly useful for structs with optional fields used in JSON or protobuf serialization. Projects with helper functions like ptr can now delete these helpers and use the new built-in directly.

Sign in to read the full notes

Get access to AI-generated notes, topic timestamps, and more.