modulepackage
0.0.0-20210226163009-20ebb0f2a09e
Repository: https://github.com/pkg/diff.git
Documentation: pkg.go.dev
# README
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
- Myers diff paper
- Guido Van Rossum's reverse engineering of the unified diff format
- The If Works blog entries about diff algorithms and implementations
This module has not yet reached v1.0; the API is not yet settled (issue #18).
# Packages
No description provided by the author
Package ctxt provides routines to reduce the amount of context in an edit script.
Package edit provides edit scripts.
Package intern provides string interning.
Package myers implements the Myers diff algorithm.
Package write provides routines for writing diffs.