• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmd/pkg-diff-example/H26-Feb-2021-7153

ctxt/H26-Feb-2021-10070

edit/H26-Feb-2021-14691

intern/H26-Feb-2021-2612

myers/H26-Feb-2021-264206

testdata/H26-Feb-2021-153,607153,598

write/H26-Feb-2021-339247

LICENSEH A D26-Feb-20211.4 KiB126

bench_test.goH A D26-Feb-2021962 5146

diff.goH A D26-Feb-20214.5 KiB139102

example_test.goH A D26-Feb-2021586 5329

fuzz.goH A D26-Feb-20211.1 KiB4839

go.modH A D26-Feb-202136 42

go.sumH A D26-Feb-20210

readme.mdH A D26-Feb-20211.2 KiB3019

todo.goH A D26-Feb-20211.8 KiB441

readme.md

1# diff [![GoDoc](https://godoc.org/github.com/pkg/diff?status.svg)](http://godoc.org/github.com/pkg/diff)
2
3Module github.com/pkg/diff can be used to create, modify, and print diffs.
4
5The top level package, `diff`, contains convenience functions for the most common uses.
6
7The subpackages provide very fine-grained control over every aspect:
8
9* `myers` creates diffs using the Myers diff algorithm.
10* `edit` contains the core diff data types.
11* `ctxt` provides tools to reduce the amount of context in a diff.
12* `write` provides routines to write diffs in standard formats.
13
14License: BSD 3-Clause.
15
16### Contributing
17
18Contributions are welcome. However, I am not always fast to respond.
19I apologize for any sadness or frustration that that causes.
20
21Useful background reading about diffs:
22
23* [Neil Fraser's website](https://neil.fraser.name/writing/diff)
24* [Myers diff paper](http://www.xmailserver.org/diff2.pdf)
25* [Guido Van Rossum's reverse engineering of the unified diff format](https://www.artima.com/weblogs/viewpost.jsp?thread=164293)
26* [The If Works](https://blog.jcoglan.com/) blog entries about diff algorithms and implementations
27
28This module has not yet reached v1.0;
29the API is not yet settled (issue #18).
30