Documentation ¶
Index ¶
- Constants
- func JoinMixedLines(mixedLines []*MixedLine) string
- type DiffConstractor
- func (d *DiffConstractor) AddDiffs(ds []diffmatchpatch.Diff)
- func (d *DiffConstractor) GetAfter() string
- func (d *DiffConstractor) GetBefore() string
- func (d *DiffConstractor) GetMixed() string
- func (d *DiffConstractor) GetMixedLines() []*MixedLine
- func (d *DiffConstractor) GetMixedLinesAndStateRecord() ([]*MixedLine, [][3]int)
- type DiffLine
- type MixedLine
Constants ¶
View Source
const DiffChanged diffmatchpatch.Operation = 2
Variables ¶
This section is empty.
Functions ¶
func JoinMixedLines ¶ added in v0.3.2
Types ¶
type DiffConstractor ¶
type DiffConstractor struct {
Lines []*DiffLine
}
func New ¶
func New() *DiffConstractor
func (*DiffConstractor) AddDiffs ¶
func (d *DiffConstractor) AddDiffs(ds []diffmatchpatch.Diff)
func (*DiffConstractor) GetAfter ¶
func (d *DiffConstractor) GetAfter() string
func (*DiffConstractor) GetBefore ¶
func (d *DiffConstractor) GetBefore() string
func (*DiffConstractor) GetMixed ¶
func (d *DiffConstractor) GetMixed() string
func (*DiffConstractor) GetMixedLines ¶
func (d *DiffConstractor) GetMixedLines() []*MixedLine
func (*DiffConstractor) GetMixedLinesAndStateRecord ¶ added in v0.3.2
func (d *DiffConstractor) GetMixedLinesAndStateRecord() ([]*MixedLine, [][3]int)
type MixedLine ¶
type MixedLine struct { Data string State diffmatchpatch.Operation }
Click to show internal directories.
Click to hide internal directories.