https://github.com/pkg/diff
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pkg/diff
- Owner: pkg
- License: bsd-3-clause
- Created: 2018-02-11T22:59:24.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T19:27:55.000Z (about 1 year ago)
- Last Synced: 2025-05-03T03:41:36.385Z (8 months ago)
- Language: Go
- Size: 184 KB
- Stars: 97
- Watchers: 6
- Forks: 8
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# diff [](http://godoc.org/github.com/pkg/diff)
Module github.com/pkg/diff can be used to create, modify, and print diffs.
The top level package, `diff`, contains convenience functions for the most common uses.
The subpackages provide very fine-grained control over every aspect:
* `myers` creates diffs using the Myers diff algorithm.
* `edit` contains the core diff data types.
* `ctxt` provides tools to reduce the amount of context in a diff.
* `write` provides routines to write diffs in standard formats.
License: BSD 3-Clause.
### Contributing
Contributions are welcome. However, I am not always fast to respond.
I apologize for any sadness or frustration that that causes.
Useful background reading about diffs:
* [Neil Fraser's website](https://neil.fraser.name/writing/diff)
* [Myers diff paper](http://www.xmailserver.org/diff2.pdf)
* [Guido Van Rossum's reverse engineering of the unified diff format](https://www.artima.com/weblogs/viewpost.jsp?thread=164293)
* [The If Works](https://blog.jcoglan.com/) blog entries about diff algorithms and implementations
This module has not yet reached v1.0;
the API is not yet settled (issue #18).