diff

package
v0.0.0-...-bd8cf78 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation int
const (
	OpInsertion Operation = iota + 1
	OpDeletion
	OpSubStitution
)

func (Operation) String

func (o Operation) String() string

type SliceDiff

type SliceDiff struct {
	Xi, Yi int
	Op     Operation
}

type SliceDiffs

type SliceDiffs []SliceDiff

func Slice

func Slice(nx, ny int, equal func(ix, iy int) bool) SliceDiffs

func (SliceDiffs) Text

func (d SliceDiffs) Text(w io.Writer, nx, ny int, xstr, ystr func(int) string)

Jump to

Keyboard shortcuts

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