Help us shape the future of Go! Take the 2026 Go Developer Survey

patch

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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.

func GenerateDiffWithIssues added in v0.3.0

func GenerateDiffWithIssues(specRaw string, patches []schema.Patch, issues []schema.Issue, w io.Writer) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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