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

Adds new config options: #56

Closed atombender closed 7 years ago

atombender commented 7 years ago

DisablePointerAddresses: Specifies whether to disable the printing of pointer addresses.

DisableCapacities specifies whether to disable the printing of capacities for arrays, slices, maps and channels.

These are useful when diffing data structures in tests. Printing pointers and capacities would otherwise lead to false negatives.

Needed to fix issue #317 in Testify.

atombender commented 7 years ago

Awesome, thanks.