{"modulePath":"github.com/unitytech/client-go","version":"v2.0.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package diff\n\n## Functions\n\n```go\nfunc ObjectDiff(a, b interface{}) string\n```\nObjectDiff writes the two objects out as JSON and prints out the identical part of the objects followed by the remaining part of 'a' and finally the remaining part of 'b'. For debugging tests.\n\n```go\nfunc ObjectGoPrintDiff(a, b interface{}) string\n```\nObjectGoPrintDiff is like ObjectDiff, but uses go-spew to print the objects, which shows absolutely everything by recursing into every single pointer (go's %#v formatters OTOH stop at a certain point). This is needed when you can't figure out why reflect.DeepEqual is returning false and nothing is showing you differences. This will.\n\n```go\nfunc ObjectGoPrintSideBySide(a, b interface{}) string\n```\nObjectGoPrintSideBySide prints a and b as textual dumps side by side, enabling easy visual scanning for mismatches.\n\n```go\nfunc ObjectReflectDiff(a, b interface{}) string\n```\n\n```go\nfunc StringDiff(a, b string) string\n```\nStringDiff diffs a and b and returns a human readable diff.\n\n","path":"github.com/unitytech/client-go/pkg/util/diff","name":"diff","synopsis":"","isRedistributable":true}
