package myers
import "honnef.co/go/tools/internal/diff/myers"
Index ¶
Functions ¶
func ComputeEdits ¶
func ComputeEdits(before, after string) []*operation
Types ¶
type OpKind ¶
type OpKind int
OpKind is used to denote the type of operation a line represents.
const ( // Delete is the operation kind for a line that is present in the input // but not in the output. Delete OpKind = iota // Insert is the operation kind for a line that is new in the output. Insert // Equal is the operation kind for a line that is the same in the input and // output, often used to provide context around edited lines. Equal )
func (OpKind) String ¶
String returns a human readable representation of an OpKind. It is not intended for machine processing.
Source Files ¶
diff.go
- Version
- v0.4.0
- Published
- Feb 3, 2023
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 17 minutes ago –
Tools for package owners.