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

Feat: add DisableUnexported #122

Open flw-cn opened 4 years ago

flw-cn commented 4 years ago

DisableUnexported specifies whether to disable the unexported fields of struct. This is useful for debugging APIs.

This should close #121.

flw-cn commented 4 years ago

I noticed that the previous changes did not have accompanying test cases, which resulted in a slight drop in test case coverage. For that reason, I've dedicated today to writing a set of test cases to show that I'm doing it right.

There are still some errors in the CI process, but I don't think they're caused by my changes.

@davecgh Could you take a look at this PR at a convenient time?