Documentation
¶
Overview ¶
Package linemerge merges two edits of one text file, made from a common base, by lines. The result depends only on the three inputs.
Index ¶
Constants ¶
View Source
const ( // MaxBytes is the most bytes that Merge takes from each input. MaxBytes = 1 << 20 // MaxLines is the most lines that Merge takes from each input. MaxLines = 20000 )
Variables ¶
View Source
var ( // ErrBinary is an input that holds a NUL byte. ErrBinary = errors.New("linemerge: an input is binary") // ErrTooLarge is an input that passes MaxBytes or MaxLines. ErrTooLarge = errors.New("linemerge: an input is too large") // ErrOverlap is two sides that change the same lines or lines that touch. ErrOverlap = errors.New("linemerge: both sides change the same lines") // ErrTooManyEdits is a side that differs from the base by more than the bound of the diff. ErrTooManyEdits = errors.New("linemerge: a side differs from the base by too many lines") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.