Versions in this module Expand all Collapse all v1 v1.0.0 Mar 26, 2026 Changes in this version + func ComputeUnifiedDiff(oldStr, newStr string, contextLines int) string + func FormatDiffHTML(lines []DiffLine) template.HTML + func FormatDiffInline(line DiffLine) string + type DiffLine struct + Content string + LineNum int + Type LineType + func ComputeLineDiff(oldStr, newStr string) []DiffLine + type LineType int + const LineAdded + const LineRemoved + const LineUnchanged + func (lt LineType) CSSClass() string + func (lt LineType) Prefix() string + func (lt LineType) String() string