summaryrefslogtreecommitdiff
path: root/spew/doc.go
AgeCommit message (Collapse)Author
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
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.
2014-05-05Dump non-zero len and cap for applicable types.Josh Rickmar
Closes #16.
2014-03-27Update TravisCI to use Go 1.2.Dave Collins
Also fix a comment typo in doc.go under the custom formatter section.
2013-11-16Update README and doc.go with new SortKeys option.Dave Collins
2013-03-11Update docs for new Sdump function.Dave Collins
2013-03-08Update docs for new byte array and slice behavior.Dave Collins
2013-03-03Cleanup documentation on new ContinueOnMethod code.Dave Collins
This commit expands on TShadwell's work attached to issue #8. It rounds out the documentation for the new option.
2013-02-02Update overview doc for correct verb/flag combos.Dave Collins
2013-01-19Make overview ConfigState options order consistent.Dave Collins
2013-01-19Move SpewState methods to ConfigState.Dave Collins
Rather than stuffing a ConfigState instance into a separate SpewState, just add the functionality directly to the ConfigState. This provides simpler syntax for the consumer. One side effect of this change is that, unlike a zero value SpewState, a zero value ConfigState doesn't provide default values which means the Indent field is set to provide no indentation. The consumer is now expected to set the indent to their desired value when declaring an instance of ConfigState. Alternatively, the consumer can call a new function, NewDefaultConfig, which returns a ConfigState with default values, including a default indentation of a single space. For example, to change the indent to a tab, the previous syntax was: ss := new(spew.SpewState) // or var ss spew.SpewState scs := ss.Config() scs.Indent = "\t" scs.Dump(whatever) The new syntax is simply: scs := spew.ConfigState{Indent: "\t"} scs.Dump(whatever)
2013-01-17Implement support for %#v and %#+v in Formatter.Dave Collins
This commit implements feature request #3. In particular, it allows the formatter to respond to %#v and %#+v. The # flag (%#v) adds type information to the output and the combination of the # and + flags (%#+v) adds both type information and pointer information. This allows the consumer a choice between displaying types, pointer information, or both.
2013-01-13Fix a few comment typos and improve consistency.Dave Collins
2013-01-12Implement support for unqiue config instances.Dave Collins
This commit adds a new type, SpewState, which can be used to create instances with unique configuration options. The methods of SpewState are equivalent to the top-level functions. Full documentation and examples are included.
2013-01-10Fix a couple of comment typos.Dave Collins
2013-01-08Initial implementation.Dave Collins