patch

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCorrupt = fmt.Errorf("corrupt patch")

Functions

func Apply

func Apply(a, patch, b []byte) ([]byte, error)

Apply applies a patch to a to recreate b

func Generate

func Generate(a, b, patch []byte) []byte

Generate returns a patch representing the difference between a and b

Types

This section is empty.

Directories

Path Synopsis
package lcs contains code to find longest-common-subsequences (and diffs)
package lcs contains code to find longest-common-subsequences (and diffs)

Jump to

Keyboard shortcuts

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