diff

package
v4.7.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package diff implements line oriented diffs, similar to the ancient Unix diff command.

The current implementation is just a wrapper around Sergi's go-diff/diffmatchpatch library, which is a go port of Neil Fraser's google-diff-match-patch code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(src, dst string) (diffs []diffmatchpatch.Diff)

Do computes the (line oriented) modifications needed to turn the src string into the dst string.

func Dst

func Dst(diffs []diffmatchpatch.Diff) string

Dst computes and returns the destination text.

func Src

func Src(diffs []diffmatchpatch.Diff) string

Src computes and returns the source text

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL