davecgh / go-spew

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

Add support for Sprint* family. #7

Closed kdar closed 11 years ago

kdar commented 11 years ago

Add support for Sprint* family

davecgh commented 11 years ago

Accepted as I can see the benefits of providing it.

In the mean time, for reference of anyone reading, you can already get the information into a string fairly simply via spew.NewFormatter like this:

str := fmt.Sprint(spew.NewFormatter("foo"))
davecgh commented 11 years ago

This feature, including new tests and an updated test coverage report has been implemented as of commit 3e74359719b01af0887d1286f6a2bd93824a77ce.