davecgh / go-spew

Implements a deep pretty printer for Go data structures to aid in debugging
ISC License
5.98k stars 361 forks source link

Atomic (non-interleaved) printing #94

Open koliyo opened 5 years ago

koliyo commented 5 years ago

When printing from multiple concurrent goroutines the output from a single spew output may get interleaved. Spew should use an internal write-buffer and only make a single call to the target writer to make the output atomic.