Documentation
¶
Overview ¶
Package prettydiff provides functionality to render diffs from the github.com/sergi/go-diff package in a pretty, colored format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(diffs []diffmatchpatch.Diff) string
Render takes a slice of diffs and returns a pretty-printed string representation with color coding for additions and deletions.
The diffs are broken down into a line-by-line format, grouped into hunks, and rendered with appropriate ANSI color codes for the terminal display.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.