package
Version:
v0.5.2
Opens a new window with list of versions in this module.
Published: Dec 21, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DiffLine represents a single diff line that belongs to either the left or right side.
DiffRow represents two aligned lines (left/right) in a diff hunk.
Parse consumes unified diff text from r and returns aligned rows suitable for rendering.
LineKind represents the semantic meaning of a diff line.
const (
LineKindUnknown LineKind = iota
LineKindContext
LineKindAddition
LineKindDeletion
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.