go-spew/spew
Dave Collins 128854244a Add logic to deal with reflect pkg changes on tip.
This commit adds logic to gracefully handle the new internal reflect.Value
structure on tip as of golang commit 82f48826c6c7 as well as the internal
reflect.Value flag bit changes as of golang commit 90a7c3c86944.

It accomplishes this by doing some inspection at init time and choosing
the appropriate offsets and flag positions accordingly.  There was some
previous logic which dealt with a similar issue for golang commit
ecccf07e7f9d.  However, since the more recent commits essentially reverted
the change and also modify the flag bit positions, it made more sense to
rework the detection logic.  In particular, the new logic examines the
size of the reflect.Value struct to determine the difference and extracts
the kind from the flags to determine if the flags have been changed.

As a result, this commit allows spew to work properly with tip all the
back to Go 1.0.
2014-10-24 18:49:38 -05:00
..
testdata Dump non-zero len and cap for applicable types. 2014-05-05 22:39:05 -05:00
common.go Add logic to deal with reflect pkg changes on tip. 2014-10-24 18:49:38 -05: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