google/go-cmp

How to add more context to Diff output?

freakytoad1 opened this issue · 0 comments

I like the default output of the .Diff() function but would love more lines of context around the differences. After looking through different examples, I can't figure out how to do this. Digging into the code of cmp, it looks like the context is hardcoded to 2

const numContextRecords = 2

Is there a way to override this value?