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.2.0
Published
Oct 20, 2022
Platform
linux/amd64
Imports
4 packages
Last checked
19 minutes ago

Tools for package owners.