diff

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderUnified

func RenderUnified(opts Options) []string

RenderUnified returns a git-style unified diff for a file change.

Types

type Options

type Options struct {
	Path      string
	Actual    string
	Expected  string
	Operation string
	Context   int
	Color     bool
}

Options controls unified diff rendering.

Jump to

Keyboard shortcuts

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