diff

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opcode

type Opcode struct {
	Tag    string // "equal", "insert", "replace", "delete"
	I1, I2 int    // old range [I1, I2)
	J1, J2 int    // new range [J1, J2)
}

Opcode represents a diff operation

func LineDiff

func LineDiff(oldContent, newContent []byte) []Opcode

LineDiff computes line-level diff between old and new content

Jump to

Keyboard shortcuts

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