lcs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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