Versions in this module Expand all Collapse all v1 v1.2.0 May 17, 2020 Changes in this version + var CARET = []byte("^") + var MINUS = []byte("-") + var PLUS = []byte("+") + var SPACE = []byte(" ") + func GetContextDiffString(diff ContextDiff) ([]byte, error) + func GetUnifiedDiffString(diff UnifiedDiff) ([]byte, error) + func SplitLines(s []byte) [][]byte + func WriteContextDiff(writer io.Writer, diff ContextDiff) error + func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error + type B2J struct + type ContextDiff UnifiedDiff + type DiffLine struct + Line []byte + Tag byte + func NewDiffLine(tag byte, line []byte) (l DiffLine) + type Differ struct + Charjunk func([]byte) bool + Linejunk func([]byte) bool + func NewDiffer() *Differ + func (d *Differ) Compare(a [][]byte, b [][]byte) (diffs [][]byte, err error) + func (d *Differ) Dump(tag []byte, x [][]byte, low int, high int) (out [][]byte) + func (d *Differ) FancyReplace(a [][]byte, alo int, ahi int, b [][]byte, blo int, bhi int) (out [][]byte, err error) + func (d *Differ) PlainReplace(a [][]byte, alo int, ahi int, b [][]byte, blo int, bhi int) (out [][]byte, err error) + func (d *Differ) QFormat(aline []byte, bline []byte, atags []byte, btags []byte) (out [][]byte) + func (d *Differ) StructuredDump(tag byte, x [][]byte, low int, high int) (out []DiffLine) + 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([]byte) bool + func NewMatcher(a, b [][]byte) *SequenceMatcher + func NewMatcherWithJunk(a, b [][]byte, autoJunk bool, isJunk func([]byte) 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 [][]byte) + func (m *SequenceMatcher) SetSeq2(b [][]byte) + func (m *SequenceMatcher) SetSeqs(a, b [][]byte) + type UnifiedDiff struct + A [][]byte + B [][]byte + Context int + Eol []byte + FromDate string + FromFile string + ToDate string + ToFile string