RepoJournal
Go

@golang

Go and the standard library - backend infrastructure at scale

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

JSON V2 BREAKS INLINE TAG, ADOPTS EMBED INSTEAD

By RepoJournal · Filed · About Go

The encoding/json/v2 rewrite is renaming its `inline` tag option to `embed` to avoid conflicts with existing Go code that already uses `inline` for different purposes.

This is a breaking change for the v2 API, but necessary. Analysis of Go module proxies showed that existing code already uses the `inline` tag outside of encoding/json semantics [1]. The rename to `embed` aligns the JSON marshaling feature with Go's language-level embedding concept, making the semantic connection clearer. In parallel, the type system gained smarter function type inference for map keys [2], which will be critical for implementing generic composite literal inference. The compiler also got cleaner type renaming logic [3], consolidating dependent method renaming at the type level rather than scattering renames across individual methods and fields. Meanwhile, pkg.go.dev fixed a regression where local pkgsite instances weren't showing subdirectory package synopses [4], restoring feature parity with the production site. The ops desk shipped routine maintenance: pkgsite bumped to Go 1.26.4 [5], metrics updated x dependencies [6], and govulncheck fixed exit code propagation for wrapped errors [7].

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] encoding/json/v2: rename `inline` tag option as `embed` golang/go
  2. [2] go/types, types2: permit function type argument inference for map keys golang/go
  3. [3] cmd/compile: rename types with dependent methods instead of renaming methods golang/go
  4. [4] internal/{fetch,fetchdatasource}: populate subdirectory synopses golang/pkgsite
  5. [5] deploy: bump Go version to 1.26.4 golang/pkgsite
  6. [6] go.mod: update golang.org/x dependencies golang/pkgsite-metrics
  7. [7] cmd/govulncheck: fix exit code propagation for wrapped scan errors golang/vuln

Quick answers

What shipped in Go on June 18, 2026?
The encoding/json/v2 rewrite is renaming its `inline` tag option to `embed` to avoid conflicts with existing Go code that already uses `inline` for different purposes. In total, 18 commits landed.
What were the notable Go updates?
encoding/json/v2: rename `inline` tag option as `embed`, go/types, types2: permit function type argument inference for map keys, and cmd/compile: rename types with dependent methods instead of renaming methods.

More from @golang

Daily updates, in your inbox

Follow Go

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.