diff

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package diff renders unified diffs between old and new file content using an in-process unified-diff renderer.

Plane: shared

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(w io.Writer, old, new []byte, filename string) error

Show writes a unified diff between old and new content to w. filename is used in the diff header ("--- a/<filename>" / "+++ b/<filename>"). Returns nil without output if old and new are identical.

Types

This section is empty.

Jump to

Keyboard shortcuts

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