Go: Struct Literals Get a Major Upgrade
Today we're diving into a fantastic day of Go development with 9 commits that brought us a significant language enhancement - promoted field selectors in struct literals! Robert Griesemer led the charge on this long-awaited feature, while the team also delivered compiler optimizations, testing improvements, and important bug fixes across multiple architectures.
Duration: PT3M56S
Episode overview
This episode is a short developer briefing from Go.
It explains recent repository work in plain language.
- Show: Go
- Published: 2026-03-20T10:08:17Z
- Audio duration: PT3M56S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Hey there, fellow Go enthusiasts! Welcome back to another episode of the Go podcast. I'm your host, and wow, do we have an exciting day to dig into! March 20th, 2026 brought us 9 fantastic commits that show the Go team firing on all cylinders.
Let's jump right into the star of today's show - and honestly, this one has me genuinely excited. Robert Griesemer just delivered a feature that developers have been asking for since 2015. We're talking about issue 9859, and if you've ever worked with embedded structs in Go, you're going to love this.
So here's the story: imagine you have a struct with embedded fields, and you want to initialize it using a composite literal. Before today, you had to be pretty verbose about it. But now? You can use promoted field names directly as keys in your struct literals! It's one of those changes that makes you go "finally!"…
Robert didn't just flip a switch here - this was serious engineering work. He rolled out a new UIR version, V3, which required rethinking how composite literals are encoded. The best part? He used this opportunity to make all composite literal encoding more compact. When you know keys are always present, why waste…
But that's not all…
M…