diff

package
v0.0.1-alpha.2 Latest Latest
Warning

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

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

Documentation

Overview

Package diff produces a minimal line-level unified diff for the edit tool's diff view (T-031). It is a single-hunk prefix/suffix matcher: good enough for the Edit tool's exact-string replacements, and dependency-free.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unified

func Unified(a, b string) string

Unified returns a +/- line diff of two strings. Common leading and trailing lines are elided; the changed middle is shown with "- " (removed) and "+ " (added) prefixes. Returns "" when a and b are identical.

Types

This section is empty.

Jump to

Keyboard shortcuts

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