Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffLine ¶
type DiffLine struct {
Left string // empty if only added on right
Right string // empty if only removed on left
LeftNo int // 0 means no line number
RightNo int
Kind LineKind
}
DiffLine represents one row in a side-by-side diff.
func SideBySide ¶
SideBySide parses a unified diff string into paired left/right lines suitable for side-by-side rendering.
Click to show internal directories.
Click to hide internal directories.