summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-14make testHEADv1.1.5v1.1.4masterguimasterdevelJeff Carr
Signed-off-by: Jeff Carr <[email protected]>
2024-01-14flatten pathsv1.1.3Jeff Carr
Signed-off-by: Jeff Carr <[email protected]>
2024-01-14add commentsv1.1.2Jeff Carr
Signed-off-by: Jeff Carr <[email protected]>
2024-01-14clean go modJeff Carr
Signed-off-by: Jeff Carr <[email protected]>
2018-08-30travis: test against go 1.11David Hill
2018-02-21travis: test against go 1.10.xv1.1.1David Hill
2018-02-03simpler, more robust bypassRoger Peppe
We make the bypass implementation a little simpler by inferring the flag field position from available reflect information and more robust by checking that the flags that are set actually match the semantics we expect. We can restrict the use of unsafe to a single function: flagField.
2018-01-21vet: fix vet warningsDavid Hill
2017-10-05Add Go tip to coverage matrixKevin Burke
Also make this project compatible with running Travis CI on forks - the go_import_path directive tells Travis to clone to $GOPATH/src/github.com/davecgh/go-spew even if the remote user is different.
2017-10-03Update tests for cgo changes to Go tip.Dave Collins
2017-08-29travis: test against go 1.9David Hill
2017-07-11travis: test against 1.8.xDavid Hill
2017-07-11travis: Use gometalinterDavid Hill
2017-07-11Fix 'and/or' in the ISC license textFabio Rapposelli
2017-07-11Fix build, license, coverage, and godoc linksAndrew Keating
2017-07-11Update common.go (#63)wangkechun
2017-06-27correct misspell on spew/common.go#L183Bill Q
2016-10-29Correct a copy of misspellings found by misspell.v1.1.0Dave Collins
2016-10-29Remove duplicate godoc badge.Dave Collins
2016-10-29Update badges in README.md to SVG.Dave Collins
Also, while here: - Add a license badge - Add godoc badge alongside other badges at the very top - Add link to the copyfree website for the license
2016-10-29Update license copyright years.Dave Collins
Several files had been updated since the listed years. This updates them accordingly.
2016-10-29Update doc.go/README.md with new config options.Dave Collins
2016-10-28Adds new config options:Alexander Staubo
DisablePointerAddresses: Specifies whether to disable the printing of pointer addresses. DisableCapacities specifies whether to disable the printing of capacities for arrays, slices, maps and channels. These are useful when diffing data structures in tests. Printing pointers and capacities would otherwise lead to false negatives.
2016-09-07Deprecate "disableunsafe" tag in favor of "safe".Dave Collins
This adds a new build tag named "safe" which serves the exact same purpose as the current "disableunsafe" tag. This is being done, as recommended by @shurcooL, since it is emerging as the standard way to do it in several high profile packages, it mirrors the "unsafe" package nicely, it is shorter, and users generally seem to prefer it. However, to avoid breaking existing infrastructure, the disableunsafe tag is still available and simply is being deprecated.
2016-09-07Disable unsafe for GopherJS compiler.Jonathan Hall
* Disable unsafe for GopherJS compiler. * Update comments to reflect GopherJS build constraints
2016-09-02Link missing blog post to web archive (fixes #46 and #41)anatoly techtonik
2016-08-16Update Travis to test multiple golang versions.v1.0.0David Hill
2016-08-16Add license title.Waldir Pimenta
2015-11-05Add logic to deal with reflect pkg changes on tip.Dave Collins
This commit adds logic to gracefully the internal reflect.Value flag bit changes as of golang commit adf9b30e5594 while maintaining support all the back to Go 1.0. It accomplishes this by adding code to the init time inspection to detect the change and set the flag positions accordingly. While here, also removes a TODO comment since it was already done previously.
2015-06-19Add support for limited mode without unsafe pkg.Dave Collins
This commit adds support for compiling spew without the unsafe package. When compiled without the unsafe package, some of the more advanced features such as invoking stringers on pointers from non-pointer variables and unexported struct fields are not available. By default, spew will be compiled in the limited mode for Google App Engine since the unsafe package is not available there. Additionally, spew can be compiled without the unsafe package manually by specifying the "disableunsafe" build tag. Finally, a new package-level constant named "UnsafeDisabled" has been exposed which can be used to programmatically determine if spew was compiled with access to the unsafe package.
2015-05-25Provide an example on how to debug a web app.Jason Buberel
Update README.md Removing extra line.
2015-05-17Removed spurious "spew".Brian Dorsey
2015-05-03Add import line to README.md quickstartBrian Dorsey
2015-04-10Enable methods to sort map keys and spew itself as last resortTim Hockin
If enabled by flags, try to use methods to stringify map keys and sort on that. If we can't use primitive sorting and we can't use methods, we can still fall back on spew itself. If SpewKeys is enabled, use Sprintf("%#v") to generate a string and sort by that.
2015-02-23Add -u to the README installation instructions.Dave Collins
This will allow the command to update the package if an old one happens to be present while still fetching it if it's missing. Suggested by @shurcooL in #28.
2015-02-23Add support for sorting keys that are arrays.Anaminus
2015-01-19make nil maps appear different than empty mapsdeads2k
2014-11-15Improve unsafe reflect value handling.Dave Collins
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-10-24Add logic to deal with reflect pkg changes on tip.Dave Collins
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-05-05Dump non-zero len and cap for applicable types.Josh Rickmar
Closes #16.
2014-03-27Point test coverage badge at master branch.Dave Collins
2014-03-27Configure TravisCI to test with testcgo tag.Dave Collins
2014-03-27Add coveralls.io test coverage badge.Dave Collins
2014-03-27Don't change to spew dir before invoking goveralls.Dave Collins
2014-03-27Correct TravisCI .yml file.Dave Collins
2014-03-27Configure TravisCI goveralls call correctly.Dave Collins
By default goveralls tries to use gocov. This modifies it to use the cover profile provided by go test instead.
2014-03-27Setup TravisCI to report cov stats to coveralls.io.Dave Collins
2014-03-27Update TravisCI to use Go 1.2.Dave Collins
Also fix a comment typo in doc.go under the custom formatter section.
2014-01-08Add logic to deal with reflect pkg changes on tip.Dave Collins
This commit adds logic to gracefully handle the new internal reflect.Value structure on tip as of golang commit ecccf07e7f9d. It accomplishes this by doing some inspection at init time and choosing the appropriate offsets as well as modifying which offset is used for the value accordingly. As a result, this allows spew to work properly with both the current release version of Go as well as tip. Fixes #15.
2013-12-02Merge pull request #14 from pmezard/fix-sorting-test-on-32bitsDave Collins
tests: fix TestSortValues on 32-bits platforms