patch

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDiff

func GenerateDiff(specRaw string, patches []schema.Patch, w io.Writer) string

GenerateDiff converts schema.Patch entries into a unified diff string suitable for writing to --patch-out. Patches that cannot be located in the spec are skipped with a warning written to w (may be nil). Both before and after are normalized before diffing to avoid spurious whitespace diffs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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