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

Ignore Stringer() interface

pjebs opened this issue · comments

commented

Is there somewhere to configure Spew so that Sdump ignores Stringer interface.

It may be reasonable to avoid usage of Stringer by default. GoStringer would be a more appropriate choice.

spew.Config.DisableMethods = true

You can also make your own ConfigState and call Sdump on it.