delta

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 2 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 {
	algorithm.Algorithm
	// Diff creates a patch from old to new.
	Diff(oldfile io.Reader, newfile io.Reader) (io.ReadCloser, error)
}

Differ abstracts over the delta creation aspect of a diffing algorithm.

type Patcher

type Patcher interface {
	algorithm.Algorithm
	// Patch returns a reader that applies the given patch to the input.
	Patch(old io.Reader, patch io.Reader) (io.Reader, error)
}

Patcher abstracts over the delta application aspect of a diffing algorithm.

Jump to

Keyboard shortcuts

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