pkg/diff

Go

101

44 commits

updated Dec 24, 2024

See the code

README

diff GoDoc

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:

This module has not yet reached v1.0; the API is not yet settled (issue #18).

pkg/diff

Go

101

44 commits

updated Dec 24, 2024

See the code

README

diff GoDoc

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:

This module has not yet reached v1.0; the API is not yet settled (issue #18).

Project health

Overall

2.1/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

Egon Elbre

606 followers · starred Nov 2020

David Crawshaw

2,349 followers · starred Sep 2020

Konrad Weihmann

29 followers · starred Dec 2019

Artyom Pervukhin

125 followers · starred Dec 2019