logoalt Hacker News

cyberax • 01/21/2025 • 0 replies • view on HN

A more correct term is "goroutine-local" storage, which Go _already_ has. It's used for pprof labels, they are even inherited when a new Goroutine is started.