Registry / testing / andreyvit-diff

andreyvit-diff

JSON →
library0.0.0-20170406064948-c7f18ee00883gogounverified

Provides quick and easy string diffing functions based on github.com/sergi/go-diff, mainly for diffing strings in tests.

go get github.com/andreyvit/diff
INSTALL
IMPORT
SIG · ANDREYVIT-DIFF
A
andreyvit-diff
testinggov0.0.0-20170406064948-c7f18ee00883
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/andreyvit/diff

Shows line-by-line diff between two strings.

package main import ( "fmt" "github.com/andreyvit/diff" ) func main() { a := "hello world" b := "hello go" fmt.Println(diff.LineDiff(a, b)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170406064948-c7f18ee00883latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
42
Bingbot
5
Meta
1
OpenAI (training)
1
Resources
andreyvit-diff — go get andreyvit-diff · libregistry