Versions in this module Expand all Collapse all v1 v1.0.0 Jan 10, 2016 Changes in this version + func GetContextDiffString(diff ContextDiff) (string, error) + func GetUnifiedDiffString(diff UnifiedDiff) (string, error) + func SplitLines(s string) []string + func WriteContextDiff(writer io.Writer, diff ContextDiff) error + func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error + type ContextDiff UnifiedDiff + 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 NewMatcherWithJunk(a, b []string, autoJunk bool, isJunk func(string) bool) *SequenceMatcher + func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode + func (m *SequenceMatcher) GetMatchingBlocks() []Match + func (m *SequenceMatcher) GetOpCodes() []OpCode + func (m *SequenceMatcher) QuickRatio() float64 + func (m *SequenceMatcher) Ratio() float64 + func (m *SequenceMatcher) RealQuickRatio() float64 + 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