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

Suppress printing of nil pointers #131

Open objsys opened 3 years ago

objsys commented 3 years ago

Currently if spew prints a structure that contains pointers valued as nil, it will print a line something like this:

TransportID: (*string)(<nil>),

Is it possible to suppress the display of pointers that have nil as a value?