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

Add options to disable printing of type and length #58

Closed kibra closed 6 months ago

kibra commented 7 years ago

Disabling types/lengths leads to more concise, human-readable, multi-line output.

I've attempted to add tests, but they are failing to run with:

~/p/g/s/g/k/go-spew $ go test -v -tags testcgo ./spew                                                          ⏎ master ✱
# github.com/kibra/go-spew/spew_test
spew/common_test.go:144: undefined: spew.SortValues

I'll take a look tomorrow.

Addresses: https://github.com/davecgh/go-spew/issues/19


This change is Reviewable

raven-chen commented 7 years ago

Will this PR get accepted? It is exactly what I need now.

jojomi commented 6 years ago

Any chance to get this merged?

EslamElHusseiny commented 6 years ago

This PR has been waiting for a quite long time, any chances to get it merged?

jojomi commented 6 years ago

@EslamElHusseiny @raven-chen @kibra I merged this together with other longstanding MRs to my own fork. I would be happy to drop it in favour of this "official" repo, but for now you can checkout https://github.com/jojomi/go-spew