davecgh / go-spew

Implements a deep pretty printer for Go data structures to aid in debugging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suppress printing of nil pointers

objsys opened this issue · comments

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?