Versions in this module Expand all Collapse all v0 v0.1.0 Apr 2, 2021 Changes in this version + const DefaultEditCost + const DefaultTimeout + const Delete + const Equal + const Insert + const NoTimeout + type Diff struct + Op int + Text string + func (d Diff) String() string + type Diffs []Diff + func DiffMain(text1, text2 string, checkLines bool, timeout time.Duration) Diffs + func (diffs Diffs) Levenshtein() (levenshtein int) + func (diffs Diffs) PrettyHTML() (s string) + func (diffs Diffs) Text1() (source string) + func (diffs Diffs) Text2() (dest string) + func (diffs Diffs) XIndex(loc1 int) (loc2 int) + func (pDiffs *Diffs) CleanupEfficiency(editCost int) (diffs Diffs) + func (pDiffs *Diffs) CleanupMerge() (diffs Diffs) + func (pDiffs *Diffs) CleanupSemanticLossless() (diffs Diffs) + func (pdiffs *Diffs) CleanupSemantic() (diffs Diffs)