Versions in this module Expand all Collapse all v0 v0.1.0 Aug 5, 2026 Changes in this version + type CharSegment struct + Type LineType + Value string + type DiffLine struct + NewLine *int + OldLine *int + Segments []CharSegment + Type LineType + Value string + func Refine(diffLines []DiffLine) []DiffLine + type LineType string + const LineAdd + const LineDelete + const LineEqual + type Mode string + const ModeCreate + const ModeDelete + const ModeMove + const ModeUpdate + type Result struct + Diff []DiffLine + Source string + Text string + func Apply(sourceText, diffText string, mode Mode) (Result, error)