Skip to content

v0.3.0

Compare
Choose a tag to compare
@dsnet dsnet released this 29 Apr 22:21
· 90 commits to master since this release
6f77996

Added features:

Bug fixes:

  • (#87) Fixed proper comparing of slices where one is a sub-slice of the other.

Reporter changes:

  • (#124) The cmp.Diff output has been completely re-written to provide a unified diff of the two Go objects as a literal in pseudo-Go syntax (example).
  • (#131) The default reporter has built-in heuristics to detect whether a string or a byte-slice looks like binary data or human readable text, and can provide more humanly readable differences in certain use-cases. For example, a string may be detecting as containing multiple lines of text, for which it will print the difference based on the lines.