diff

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hunk

type Hunk struct {
	BeforeStart int
	BeforeEnd   int
	AfterStart  int
	AfterEnd    int
}

Hunk describes one contiguous change using UTF-8 byte offsets.

func CharacterHunks

func CharacterHunks(before, after string, timeout time.Duration) []Hunk

CharacterHunks returns semantically cleaned character-level changes.

func LineHunks

func LineHunks(before, after string, timeout time.Duration) []Hunk

LineHunks aligns complete lines before returning changed ranges.

Jump to

Keyboard shortcuts

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