Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPatch ¶
ApplyPatch applies a patch to the given content
func CreatePatch ¶
CreatePatch creates a patch from the given old and new content
func MergeFiles ¶
MergeFiles merges the given old and new files
Types ¶
type Diff ¶
type Diff struct { Path string Patches []diffmatchpatch.Patch }
Diff represents a diff
func (*Diff) ApplyToContent ¶
ApplyToContent applies the diff to the given content
func (*Diff) HasChanges ¶
HasChanges returns true if the diff has changes
Click to show internal directories.
Click to hide internal directories.