package lcs

import "golang.org/x/tools/internal/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.3.0
Published
Nov 9, 2022
Platform
js/wasm
Imports
4 packages
Last checked
6 hours ago

Tools for package owners.