Versions in this module Expand all Collapse all v0 v0.349.0 Nov 1, 2026 v0.348.1 Oct 31, 2026 v0.348.0 Oct 31, 2026 v0.347.0 Oct 31, 2026 v0.346.1 Oct 31, 2026 v0.346.0 Oct 31, 2026 Changes in this version + const DefaultBudget + func Split(s string) []string + func Stats(edits []Edit) (added, removed int) + func Unified(aName, bName string, a, b []string, context int) string + type Edit struct + A int + B int + Op Op + func Lines(a, b []string) []Edit + func LinesWith(a, b []string, o Options) []Edit + type Hunk struct + ALen int + AStart int + BLen int + BStart int + Edits []Edit + func Hunks(edits []Edit, context int) []Hunk + type Op uint8 + const Delete + const Equal + const Insert + func (o Op) String() string + type Options struct + Budget int + type Row struct + A int + B int + Op Op + func SideBySide(edits []Edit) []Row + func (r Row) Changed() bool