Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages