Skip to content

Commit 8658100

Browse files
committed
add go.mod and switch to github.com/katbyte/sergi-go-diff fork to work around github.com/sergi/go-diff/issues/123
1 parent c7f18ee commit 8658100

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

diff.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"strings"
66

7-
"github.com/sergi/go-diff/diffmatchpatch"
7+
"github.com/katbyte/sergi-go-diff/diffmatchpatch"
88
)
99

1010
func diff(a, b string) []diffmatchpatch.Diff {

go.mod

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module github.com/katbyte/andreyvit-diff
2+
3+
go 1.19
4+
5+
require github.com/katbyte/sergi-go-diff v1.2.1
6+
7+
require github.com/pmezard/go-difflib v1.0.0 // indirect

go.sum

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2+
github.com/katbyte/sergi-go-diff v1.2.1 h1:etD07v2OL+HOzN32zF202yZbpzoUkizbfvbggpBSn/s=
3+
github.com/katbyte/sergi-go-diff v1.2.1/go.mod h1:BxkLLDDB1iVQsnURErqoQMjkyXIlR0DefDKzZCUHNEw=
4+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
6+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
7+
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=

0 commit comments

Comments
 (0)