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

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

Open reinerRubin opened 4 years ago

reinerRubin commented 4 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