Skip to content

bill-rich/go-myersdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-MyersDiff

This implementation of the Myers Diff Algorythm was written for when the diff of many files is needed fast in Go. It includes options for what output is needed (additions, deletions, or similarities).

Usage

import "github.com/bill-rich/go-myersdiff"

func main() {
	a := []string {
		"line 1",
		"line 2a",
		"line 3",
	}
	a := []string {
		"line 1", 
		"line 2b", 
		"line 3",
	}
	fmt.Println(myersdiff.GenerateDiff(a, b, myersdiff.NewOptions()))
}

About

A fast Myers Diff for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages