Versions in this module Expand all Collapse all v1 v1.1.3 Sep 5, 2021 v1.1.2 Sep 5, 2021 Changes in this version + func Patch(fh fs.FileHandle, deltas Deltas) error + func PatchPath(path string, deltas Deltas) error + type Delta struct + LineNrFrom int + LineNrTarget int + StartPosFrom int64 + StartPosTarget int64 + Text string + Type DeltaType + func (d *Delta) String() string + type DeltaType int + const Del + const Eq + const Ins + type Deltas []Delta + func (deltas Deltas) String() string + type Diff struct + Deltas []Deltas + InlineDiffHTMLFragment []string + Patches []string + PrettyTextDiff string + SideBySideDiffHTMLFragment []string + func NewDiff(from, target string, contextSize int) Diff + func NewDiffFromPath(from, target string, contextSize int) (Diff, error)