Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
cmd/pkg-diff-example/ | H | 26-Feb-2021 | - | 71 | 53 | |
ctxt/ | H | 26-Feb-2021 | - | 100 | 70 | |
edit/ | H | 26-Feb-2021 | - | 146 | 91 | |
intern/ | H | 26-Feb-2021 | - | 26 | 12 | |
myers/ | H | 26-Feb-2021 | - | 264 | 206 | |
testdata/ | H | 26-Feb-2021 | - | 153,607 | 153,598 | |
write/ | H | 26-Feb-2021 | - | 339 | 247 | |
LICENSE | H A D | 26-Feb-2021 | 1.4 KiB | 12 | 6 | |
bench_test.go | H A D | 26-Feb-2021 | 962 | 51 | 46 | |
diff.go | H A D | 26-Feb-2021 | 4.5 KiB | 139 | 102 | |
example_test.go | H A D | 26-Feb-2021 | 586 | 53 | 29 | |
fuzz.go | H A D | 26-Feb-2021 | 1.1 KiB | 48 | 39 | |
go.mod | H A D | 26-Feb-2021 | 36 | 4 | 2 | |
go.sum | H A D | 26-Feb-2021 | 0 | |||
readme.md | H A D | 26-Feb-2021 | 1.2 KiB | 30 | 19 | |
todo.go | H A D | 26-Feb-2021 | 1.8 KiB | 44 | 1 |
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