myers

package
v0.0.0-...-b73abcb Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT 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