Package diff implements methods for comparing objects and producing edit scripts. The motivation to create the package was to be able to use the diff output format in tests where the output of go-cmp wasn't suitable. It isn't optimized for performance and as of now, it is a non-goal. See the package documentation for more information.
$ go get github.com/mibk/diff