Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffLine ¶
type DiffLine struct {
Type rune // ' ' for context, '-' for removed, '+' for added
Content string
}
DiffLine represents a single line in the diff.
type DiffOptions ¶
type DiffOptions struct {
Unified int // Number of context lines for unified diff
Side bool // Side-by-side output
Brief bool // Report only when files differ
IgnoreCase bool // Ignore case differences
IgnoreSpace bool // Ignore whitespace differences
IgnoreBlank bool // Ignore blank lines
Recursive bool // Recursively compare directories
JSON bool // Compare as JSON
Color bool // Colorize output
Context int // Lines of context (old style)
Width int // Output width for side-by-side
SuppressCommon bool // Suppress common lines in side-by-side
}
DiffOptions configures the diff command behavior.
Click to show internal directories.
Click to hide internal directories.