differ

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	// contains filtered or unexported fields
}

func New

func New() *Diff

func (*Diff) DiffHash

func (d *Diff) DiffHash(ctx context.Context, text1, text2 string) (string, bool)

DiffHash parses text1 and text2 html and

func (*Diff) DiffPatch

func (d *Diff) DiffPatch(in1, in2 string, length int) string

DiffPatch takes the diff of two inputs, and only keeps text that is equal and the length of the text is > length

func (*Diff) DiffPatchURL

func (d *Diff) DiffPatchURL(in1, in2 string) string

DiffPatchURL takes in two urls and patches (removes) any differences between them

Jump to

Keyboard shortcuts

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