Patrick Mezard 8623a884c8 Initial port with SequenceMatcher and unified_diff()
Ported from python default branch (29764a7bd6ba).
2013-10-21 22:50:12 +02:00

Here is a partial port of python 3 difflib package. Its main goal was to make available a unified diff implementation, mostly for testing purposes.

The following class and functions have be ported:

  • SequenceMatcher
  • unified_diff()

Related doctests have been ported as well.

I have barely used to code yet so do not consider it being production-ready. The API is likely to evolve too.

Description
Partial port of Python difflib package to Go
Readme BSD-3-Clause 95 KiB
Languages
Go 100%