diffutil

package
v1.0.0-rc.2 Latest Latest
Warning

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

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

Documentation

Overview

Package diffutil is a small pure-Go line diff (LCS-based) producing unified-style hunks. It exists so the engine can render schema diffs without shelling out to diff(1) or adding a dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unified

func Unified(a, b string) string

Unified returns a unified-style line diff of a and b ("@@ -i,n +j,m @@" hunks with contextLines of context, no file headers), or "" when the inputs are line-equal. Trailing-newline-only differences are ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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