summaryrefslogtreecommitdiff
path: root/spew/doc.go
diff options
context:
space:
mode:
authorJosh Rickmar <[email protected]>2014-05-05 22:09:56 -0500
committerDave Collins <[email protected]>2014-05-05 22:39:05 -0500
commit3fdaf5cea8d23107b993d363e98992fa529dd713 (patch)
tree621df5e9073ac8733da24f852c6ce3df8c135fc7 /spew/doc.go
parent9ed19f9b0c9116d712e32dee78f1704cb9fc5b02 (diff)
Dump non-zero len and cap for applicable types.
Closes #16.
Diffstat (limited to 'spew/doc.go')
-rw-r--r--spew/doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/spew/doc.go b/spew/doc.go
index 5a3e2ec..a0d73ac 100644
--- a/spew/doc.go
+++ b/spew/doc.go
@@ -128,14 +128,14 @@ shown here.
flag: (main.Flag) flagTwo,
data: (uintptr) <nil>
}),
- ExportedField: (map[interface {}]interface {}) {
- (string) "one": (bool) true
+ ExportedField: (map[interface {}]interface {}) (len=1) {
+ (string) (len=3) "one": (bool) true
}
}
Byte (and uint8) arrays and slices are displayed uniquely like the hexdump -C
command as shown.
- ([]uint8) {
+ ([]uint8) (len=32 cap=32) {
00000000 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 |............... |
00000010 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 |!"#$%&'()*+,-./0|
00000020 31 32 |12|