sergi / go-diff

Diff, match and patch text in Go
MIT License
1.81k stars 207 forks source link

Add PatchMakeRunes that uses runes to calculate string length #129

Closed kkkunny closed 1 year ago

kkkunny commented 2 years ago

Some diff libraries use unicode to calculate the string length, such as https://github.com/google/diff-match-patch, but this project uses byte, so I add a new function to complete it.