Partial port of Python difflib package to Go