diff

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

Formatter processes text to replace code blocks with diffs.

func NewFormatter

func NewFormatter() *Formatter

NewFormatter creates a new Formatter.

func (*Formatter) Format

func (f *Formatter) Format(input string) string

Format takes a string (e.g., LLM output) and replaces paired "original" and "suggestion" code blocks with a unified diff.

Jump to

Keyboard shortcuts

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