func returnsError() error var p *MyError = nil return p // This is NOT nil error!
Run with go test -bench=.
Communication between these threads is handled by . Instead of accessing shared memory directly (which leads to race conditions and bugs), Go uses the mantra: “Do not communicate by sharing memory; instead, share memory by communicating.”