diff options
| author | Dave Collins <[email protected]> | 2013-09-09 20:38:28 -0500 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-09-09 20:38:28 -0500 |
| commit | 7ea732c827c17c2e5cf8655aac42e3abe058ef17 (patch) | |
| tree | e4c7c8a9c7545bc004fd6442b5f6dc0ff11bade5 /spew/dumpnocgo_test.go | |
| parent | dab6603c081108e15997eedd5def1a9344e63469 (diff) | |
Detect nil slices and print them as <nil>.
This commit modifies the code to detect nil slices and display them as
<nil> (as opposed to simply empty slices). For most instances a nil slice
can be treated the same as an empty slice, but there is a difference and
things like reflect.DeepEqual notice. This change makes it clear whether
the type in question is a nil slice or an empty slice.
Diffstat (limited to 'spew/dumpnocgo_test.go')
0 files changed, 0 insertions, 0 deletions
