diff

package
v0.0.0-...-7a09d4d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 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