diff

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: 0BSD Imports: 4 Imported by: 0

Documentation

Overview

Package diff renders deterministic, bounded unified source differences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unified

func Unified(beforeLabel, afterLabel string, before, after []byte) string

Unified returns a three-line-context unified diff. Labels are quoted when they contain characters that would make a header span multiple fields or lines. Adversarial regions fall back to one replacement after bounded work.

Types

This section is empty.

Jump to

Keyboard shortcuts

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