Documentation
¶
Index ¶
- func Patch(text1, text2 string, checklines bool) []diffmatchpatch.Patch
- func PatchApply(text string, patch []diffmatchpatch.Patch) (string, []bool)
- func PatchApplyString(text string, patch string) (string, []bool, error)
- func PatchFrom(text string) ([]diffmatchpatch.Patch, error)
- func PatchString(text1, text2 string, checklines bool) string
- func ProcessPatch(p *process.Process) interface{}
- func ProcessPatchApply(p *process.Process) interface{}
- func ProcessReplace(p *process.Process) interface{}
- func Replace(text string, patch string) (string, error)
- type ReplacePatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Patch ¶
func Patch(text1, text2 string, checklines bool) []diffmatchpatch.Patch
Patch Compare two strings and return the array of differences
func PatchApply ¶
func PatchApply(text string, patch []diffmatchpatch.Patch) (string, []bool)
PatchApply Apply a patch to a text
func PatchApplyString ¶
PatchApplyString Apply a text formatted patch to a text
func PatchFrom ¶
func PatchFrom(text string) ([]diffmatchpatch.Patch, error)
PatchFrom Create a new patch from a text
func PatchString ¶
PatchString Compare two strings and return the array of differences
func ProcessPatch ¶
ProcessPatch Compare two strings and return the patch string
func ProcessPatchApply ¶
ProcessPatchApply Apply a patch string to text
func ProcessReplace ¶
ProcessReplace Replace text using a patch string
Types ¶
Click to show internal directories.
Click to hide internal directories.