go-spew/spew
Dave Collins 83f84dc933 Improve unsafe reflect value handling.
This commit modifies the unsafeReflectValue function to recognize
reference types even when the indirection flag is not set for the series
of golang commits after ecccf07e7f9d and before 82f48826c6c7 which
introduced the additional scalar field in the reflect.Value struct.  That
additional field has since been removed, but the intention of this code is
to work properly across all Go versions and other packages make use of the
logic.

Thanks to @shurcooL for providing example code which wasn't working
properly with the function when it was exported and therefore being called
in ways which spew itself does not.
2014-11-15 20:01:10 -06:00
..
testdata Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
common.go Improve unsafe reflect value handling. 2014-11-15 20:01:10 -06:00
common_test.go tests: fix TestSortValues on 32-bits platforms 2013-12-01 16:46:38 +01:00
config.go Add SortKeys option to doco for NewDefaultConfig. 2013-11-16 20:45:52 -06:00
doc.go Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
dump.go Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
dump_test.go Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
dumpcgo_test.go Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
dumpnocgo_test.go Add tests for recent cgo handling updates. 2013-09-21 21:50:00 -05:00
example_test.go Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
format.go Reorganize the new map key sorting functionality. 2013-11-14 21:39:21 -06:00
format_test.go config: add SortKeys option to sort native map keys before display 2013-10-27 23:44:49 +01:00
internal_test.go Add logic to deal with reflect pkg changes on tip. 2014-10-24 18:49:38 -05:00
spew.go Fix a few style issues pointed out by golint. 2013-11-14 21:19:56 -06:00
spew_test.go Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00