Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2025 v1.1.1 Jul 31, 2025 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