Documentation
¶
Overview ¶
Package myers implements the Myers diff algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyEdits ¶
func SplitLines ¶
Types ¶
type Op ¶
type Op struct {
Kind OpKind
Content []string // content from b
I1, I2 int // indices of the line in a
J1 int // indices of the line in b, J2 implied by len(Content)
}
func Operations ¶
Operations returns the list of operations to convert a into b, consolidating operations for multiple lines and not including equal lines.
Click to show internal directories.
Click to hide internal directories.