Registry / utility / pkg-diff

pkg-diff

JSON →
library0.0.0-20241224192749-4e6772a4315cgogounverified

Package diff provides high-level routines to generate textual diffs, built on lower-level diffing packages.

go get github.com/pkg/diff
INSTALL
IMPORT
SIG · PKG-DIFF
P
pkg-diff
utilitygov0.0.0-20241224192749-4e6772a4315c
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

diff
github.com/pkg/diff

Generate a textual diff between two strings.

package main import ( "fmt" "github.com/pkg/diff" ) func main() { a := "hello\nworld" b := "hello\ngo" d := diff.Text(a, b) fmt.Println(d) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20241224192749-4e6772a4315clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pkg-diff — go get pkg-diff · libregistry