diff

package
v0.0.0-...-c3c9c93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(text1, text2 string) (equal bool, diff string)

Diff finds the differences between two strings, returned as HTML, and a boolean indicating if the strings are the same.

func PrettyHTML

func PrettyHTML(dmp *diffmatchpatch.DiffMatchPatch, diffs []diffmatchpatch.Diff) string

PrettyHTML produces pretty HTML for display.

This function is copied and modified from the function `DiffPrettyHtml()` in the github.com/sergi/go-diff/diffmatchpatch package.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL