diff

package
v0.0.0-...-53e5711 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package diff supports a pluggable diff algorithm.

Index

Constants

This section is empty.

Variables

View Source
var (
	ComputeEdits func(uri span.URI, before, after string) []TextEdit
	ApplyEdits   func(before string, edits []TextEdit) string
	ToUnified    func(from, to string, before string, edits []TextEdit) string
)

Functions

func SortTextEdits

func SortTextEdits(d []TextEdit)

Types

type TextEdit

type TextEdit struct {
	Span    span.Span
	NewText string
}

TextEdit represents a change to a section of a document. The text within the specified span should be replaced by the supplied new text.

Directories

Path Synopsis
Package myers implements the Myers diff algorithm.
Package myers implements the Myers diff algorithm.

Jump to

Keyboard shortcuts

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