davecgh / go-spew

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

make "Dump" stdoutput atomic (non-interleaved) #110

Open reinerRubin opened 5 years ago

reinerRubin commented 5 years ago

Hello, There is a fix for this issue [1]. "spew.Dump" output is often interrupted by other stdout. And you have to do something like fmt.Print(spew.Sdump(body)).

I do not see any drawback of this fix. If somebody wants to use os.Stdout, he/she can use "spew.Fdump"

1 - https://github.com/davecgh/go-spew/issues/94