package myers
import "golang.org/x/tools/internal/diff/myers"
Package myers implements the Myers diff algorithm.
Index ¶
Functions ¶
func ComputeEdits ¶
ComputeEdits returns the diffs of two strings using a simple line-based implementation, like diff.Strings.
Deprecated: this implementation is moribund. However, when diffs appear in marker test expectations, they are the particular diffs produced by this implementation. The marker test framework asserts diff(orig, got)==wantDiff, but ideally it would compute got==apply(orig, wantDiff) so that the notation of the diff is immaterial.
Source Files ¶
diff.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 8 hours ago –
Tools for package owners.