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?
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 ofcmp, it looks like the context is hardcoded to2go-cmp/cmp/report_compare.go
Line 13 in c3ad843
Is there a way to override this value?