From 0d6b81150444fcc97c07494231fc1c8d5df5a683 Mon Sep 17 00:00:00 2001 From: Yanhu007 Date: Tue, 14 Apr 2026 13:08:53 +0800 Subject: [PATCH] fix: update broken upstream links in README The Go tools diff package moved from internal/lsp/diff to internal/diff. Update the README links accordingly. Fixes #5 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 593666a..3c66f2f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # gotextdiff - unified text diffing in Go [![Go Reference](https://pkg.go.dev/badge/github.com/hexops/gotextdiff.svg)](https://pkg.go.dev/github.com/hexops/gotextdiff) Hexops logo -This is a copy of the Go text diffing packages that [the official Go language server gopls uses internally](https://github.com/golang/tools/tree/master/internal/lsp/diff) to generate unified diffs. +This is a copy of the Go text diffing packages that [the official Go language server gopls uses internally](https://github.com/golang/tools/tree/master/internal/diff) to generate unified diffs. If you've previously tried to generate unified text diffs in Go (like the ones you see in Git and on GitHub), you may have found [github.com/sergi/go-diff](https://github.com/sergi/go-diff) which is a Go port of Neil Fraser's google-diff-match-patch code - however it [does not support unified diffs](https://github.com/sergi/go-diff/issues/57). @@ -47,7 +47,7 @@ We will publish a new major version anytime the API changes in a backwards-incom ## Contributing -We will only accept changes made [upstream](https://github.com/golang/tools/tree/master/internal/lsp/diff), please send any contributions to the upstream instead! Compared to the upstream, only import paths will be modified (to be non-`internal` so they are importable.) The only thing we add here is this README. +We will only accept changes made [upstream](https://github.com/golang/tools/tree/master/internal/diff), please send any contributions to the upstream instead! Compared to the upstream, only import paths will be modified (to be non-`internal` so they are importable.) The only thing we add here is this README. ## License