Initial port with SequenceMatcher and unified_diff()

Ported from python default branch (29764a7bd6ba).
4 files changed
tree: dcc4b9f3ad1e3636ab5b391cb1f239932abf7d5a
  1. difflib.go
  2. difflib_test.go
  3. LICENSE
  4. README.md
README.md

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.