Registry / utility / sergi-go-diff

sergi-go-diff

JSON →
library1.4.0gogounverified

A Go library for computing differences between texts, providing diff algorithms and output formatting.

go get github.com/sergi/go-diff
INSTALL
IMPORT
SIG · SERGI-GO-DIFF
S
sergi-go-diff
utilitygov1.4.0
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.

diffmatchpatch
github.com/sergi/go-diff/diffmatchpatch

Compute and print the diff between two strings.

package main import ( "fmt" "github.com/sergi/go-diff/diffmatchpatch" ) func main() { dmp := diffmatchpatch.New() diffs := dmp.DiffMain("Hello World", "Hello Go", false) fmt.Println(diffs) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
sergi-go-diff — go get sergi-go-diff · libregistry