Versions in this module Expand all Collapse all v1 v1.0.1 Oct 21, 2020 v1.0.0 Nov 7, 2017 Changes in this version + func ColoredText(d *DiffSolution) string + func DiffToHTML(a, b string) (string, error) + func DiffToText(a, b string) string + func HTML(d *DiffSolution) string + func HTMLLine(d *DiffSolution) (string, string) + func Text(d *DiffSolution) string + type DiffSolution struct + Lines [][3]string + func DiffLine(a, b string) *DiffSolution + func HistogramDiff(a, b string) *DiffSolution + func SequenceDiff(a, b string) *DiffSolution + func (d *DiffSolution) HTML() (*bytes.Buffer, error) + func (d *DiffSolution) PostProcess() + func (d *DiffSolution) Text() string + type HistogramDiffer struct + func NewHistogramDiffer(a, b []string) *HistogramDiffer + func (h *HistogramDiffer) Solve() *DiffSolution + type LineSource string + const LineFromA + const LineFromB + const LineFromBoth + const LineFromBothEdit + const Unknown + type Metadata struct + Change change + Dir string + DirHash string + From string + Hash string + Merged string + Timestamp int64 + To string + type SequenceDiffer struct + func NewSequenceDiffer(a, b []string) *SequenceDiffer + func (d *SequenceDiffer) Solve() *DiffSolution + type Solver interface + Solve func() *DiffSolution