Versions in this module Expand all Collapse all v2 v2.0.2 Oct 3, 2025 v2.0.1 Oct 1, 2025 Changes in this version + func GetUnifiedDiffString(diff UnifiedDiff) (string, error) + func SplitLines(s string) []string + func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error + type Match struct + A int + B int + Size int + type OpCode struct + I1 int + I2 int + J1 int + J2 int + Tag byte + type SequenceMatcher struct + IsJunk func(string) bool + func NewMatcher(a, b []string) *SequenceMatcher + func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode + func (m *SequenceMatcher) GetMatchingBlocks() []Match + func (m *SequenceMatcher) GetOpCodes() []OpCode + func (m *SequenceMatcher) SetSeq1(a []string) + func (m *SequenceMatcher) SetSeq2(b []string) + func (m *SequenceMatcher) SetSeqs(a, b []string) + type UnifiedDiff struct + A []string + B []string + Context int + Eol string + FromDate string + FromFile string + ToDate string + ToFile string