package lcs

import "golang.org/x/tools/internal/lsp/diff/lcs"

package lcs contains code to find longest-common-subsequences (and diffs)

Index

Types

type Diff

type Diff struct {
	Start, End int    // offsets in A
	Text       string // replacement text
}

func Compute

func Compute(a, b interface{}, limit int) ([]Diff, lcs)

Compute the Diffs and the lcs.

Source Files

common.go doc.go labels.go old.go

Version
v0.1.12
Published
Jul 27, 2022
Platform
windows/amd64
Imports
4 packages
Last checked
2 hours ago

Tools for package owners.