myers

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package myers implements the Myers diff algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeEdits deprecated

func ComputeEdits(before, after string) []diff.Edit

ComputeEdits returns the diffs of two strings using a simple line-based implementation, like diff.Strings.

Deprecated: this implementation is moribund. However, when diffs appear in marker test expectations, they are the particular diffs produced by this implementation. The marker test framework asserts diff(orig, got)==wantDiff, but ideally it would compute got==apply(orig, wantDiff) so that the notation of the diff is immaterial.

Types

This section is empty.

Jump to

Keyboard shortcuts

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