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/example_test.go | |
| parent | 9ed19f9b0c9116d712e32dee78f1704cb9fc5b02 (diff) | |
Dump non-zero len and cap for applicable types.
Closes #16.
Diffstat (limited to 'spew/example_test.go')
| -rw-r--r-- | spew/example_test.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spew/example_test.go b/spew/example_test.go index b1ec8a2..a7acd14 100644 --- a/spew/example_test.go +++ b/spew/example_test.go @@ -105,12 +105,12 @@ func ExampleDump() { // flag: (spew_test.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 // } // } // (spew_test.Flag) Unknown flag (5) - // ([]uint8) { + // ([]uint8) (len=34 cap=34) { // 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| @@ -156,8 +156,8 @@ func ExampleConfigState() { // Output: // v: map[one:1] - // (map[string]int) { - // (string) "one": (int) 1 + // (map[string]int) (len=1) { + // (string) (len=3) "one": (int) 1 // } } @@ -185,8 +185,8 @@ func ExampleConfigState_Dump() { // flag: (spew_test.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 // } // } // (spew_test.Foo) { @@ -194,8 +194,8 @@ func ExampleConfigState_Dump() { // flag: (spew_test.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 // } // } // |
