Open LoRexxar opened 3 years ago
just like
You can filter out the DiffEqual items of item before pass the diffs to DiffPrettyHtml or DiffPrettyText. just like this:
var newDiffs []diffmatchpatch.Diff
for _, item := range diffs {
if item.Type != diffmatchpatch.DiffEqual {
newDiffs = append(newDiffs, item)
}
}
I think it’s best to select the display content by adding parameters, this can only be a temporary solution
just like