go-cmp v0.3.0 Release Notes

Release Date: 2019-04-29 // about 3 years ago
  • โž• 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).
    • 0๏ธโƒฃ (#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.