Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
Unified []UnifiedRow
SideBySide []SideBySideRow
OldMaxLine int
NewMaxLine int
UnifiedOld int
UnifiedNew int
}
func ParseUnified ¶
ParseUnified parses a unified diff (for a single file) into: - Unified rows (default rendering) - Side-by-side rows (optional toggle)
The parser intentionally omits diff metadata and hunk headers so the UI matches diffnav's content-first style.
type SideBySideRow ¶
Click to show internal directories.
Click to hide internal directories.