diff

package
v0.0.0-...-577451a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	Equal    Kind = iota
	Insert        // right only
	Delete        // left only
	Modified      // both sides changed — adjacent delete+insert merged
)

type Line

type Line struct {
	Left     string
	LeftHL   string
	LeftNum  int
	Right    string
	RightHL  string
	RightNum int
	Op       Kind
}

func Compute

func Compute(left, right string, leftHL, rightHL []string) []Line

Jump to

Keyboard shortcuts

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