diff options
| author | Josh Rickmar <[email protected]> | 2014-05-05 22:09:56 -0500 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2014-05-05 22:39:05 -0500 |
| commit | 3fdaf5cea8d23107b993d363e98992fa529dd713 (patch) | |
| tree | 621df5e9073ac8733da24f852c6ce3df8c135fc7 /spew/common.go | |
| parent | 9ed19f9b0c9116d712e32dee78f1704cb9fc5b02 (diff) | |
Dump non-zero len and cap for applicable types.
Closes #16.
Diffstat (limited to 'spew/common.go')
| -rw-r--r-- | spew/common.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spew/common.go b/spew/common.go index bc26e7e..1a03dc8 100644 --- a/spew/common.go +++ b/spew/common.go @@ -142,6 +142,8 @@ var ( closeAngleBytes = []byte(">") openMapBytes = []byte("map[") closeMapBytes = []byte("]") + lenEqualsBytes = []byte("len=") + capEqualsBytes = []byte("cap=") ) // hexDigits is used to map a decimal value to a hex digit. |
