I recently ran into a -race error message that stumped me for a while, so I’ll retell it here in phases to see if you can catch it. The code Link to heading The intent of the code was a service abstraction that ran a goroutine in the background to send runtime stats to Stastd. A small example of the code follows: type Stats struct { prev runtime.MemStats } func (p *Stats) stats() { ms := runtime.