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

Add DisableLengths for pairity with DisableCapacities #117

Open novas0x2a opened 4 years ago

novas0x2a commented 4 years ago

For test usage, the diff will already be included, so there's no need to list the len.

This is pretty similar to https://github.com/davecgh/go-spew/pull/58 except length-only and includes tests.

novas0x2a commented 4 years ago

The tests for go 1.6, 1.7, and 1.8 fail because the tests require gometalinter, which doesn't support those go versions.