package
0.0.0-20240310010237-a3f02065c60a
Repository: https://github.com/goki/go-tools.git
Documentation: pkg.go.dev

# Packages

Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by "github.com/goki/go-tools/internal/diff".
package lcs contains code to find longest-common-subsequences (and diffs).
Package myers implements the Myers diff algorithm.

# Functions

Apply applies a sequence of edits to the src buffer and returns the result.
ApplyBytes is like Apply, but it accepts a byte slice.
Bytes computes the differences between two byte slices.
SortEdits orders a slice of Edits by (start, end) offset.
Strings computes the differences between two strings.
ToUnified applies the edits to content and returns a unified diff.
Unified returns a unified diff of the old and new strings.

# Structs

An Edit describes the replacement of a portion of a text file.