118 wires and counting

$ follow Go

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

or

fair warning: these emails are deeply technical. diffs, version numbers, CVEs, benchmark deltas. if that's not your idea of a good read, this isn't your newsletter.

Folds into your digest — weekly by default, monthly if you prefer. Unsubscribe in one click.

$ status

wire 2026-09-13
stories 1

© 2026 RepoJournal Home Showcase Explore How it works Privacy

$ the-wire · showcase

Go's log/slog MultiHandler stops sharing attrs slices

By RepoJournal · Filed · About Go · Composed from the cited sources · methodology

1 person shipped this

Go's standard library log/slog package changed MultiHandler.WithAttrs to clone the attrs slice for every contained Handler except the last, closing a path where one Handler's mutation could corrupt what later Handlers see.

Handler.WithAttrs transfers ownership of its attrs slice to the receiver. MultiHandler was passing that same slice to every contained Handler, so a Handler that modified the slice could affect subsequent Handlers downstream [1].

With this commit, MultiHandler clones the attrs slice for every Handler except the last. The last Handler receives the original slice, which avoids an unnecessary allocation while still giving every Handler independent backing storage [1].

A regression test was added alongside the change [1]. If you wrap Handlers with a MultiHandler that dispatches to more than one sink, and any of those sinks alter the attrs it receives, your behavior changes: previously those mutations leaked across Handlers, and now they do not.

Quick answers

What shipped in Go on September 13, 2026?
Go's standard library log/slog package changed MultiHandler.WithAttrs to clone the attrs slice for every contained Handler except the last, closing a path where one Handler's mutation could corrupt what later Handlers see. In total, 1 commits landed.
Who contributed to Go on September 13, 2026?
1 developer shipped this update, including cuishuang.
What were the notable Go updates?
log/slog: isolate attrs passed by MultiHandler.WithAttrs.