Skip to content

tobbee/myers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Myers

Golang implementation of Myers diff algorithm

This is a direct port to golang of the algorithm implemented by Robert Elder software here

Usage:

// go get github.com/MFAshby/myers

package main

import (
    "fmt"
    "github.com/MFAshby/myers"
)

func main() {
    e := []string{"bar", "baz"}
    f := []string{"foo", "baz"}
    ops := myers.DiffStr(e, f)
    fmt.Printf("%v\n", ops) // []Op{{OpDelete, 0, -1, "bar"}, {OpInsert, 1, 0, "foo"}}},
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%