diff

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Differ

type Differ interface {
	// Diff computes and writes the diff between old and new YAML content.
	// The header provides context (resource name, namespace, etc.).
	Diff(w io.Writer, header string, old, new string) error
}

Differ is the interface for computing and printing diffs between two YAML strings.

func New

func New(format string, contextLines int, noColor bool) (Differ, error)

New creates a Differ for the given output format.

Jump to

Keyboard shortcuts

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