diffs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package diffs implements the portable text-only diffs tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Definition

func Definition() toolcontract.Definition

Definition returns the stable model-facing tool declaration.

func Execute

Execute decodes a canonical JSON call and runs the text-only diff.

func Register

func Register(registrar toolcontract.Registrar)

Register adds the diffs implementation to a compatible catalog.

func Run

func Run(request Request) (toolcontract.Result, error)

Run executes an already normalized request and returns the existing JSON result bytes.

Types

type Request

type Request struct {
	Before string
	After  string
	Path   string
	Format string
}

Request is the normalized input to the text-only diff implementation.

Jump to

Keyboard shortcuts

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