Registry / utility / r3labs-diff-v3

r3labs-diff-v3

JSON →
library3.0.2gogounverified

A Go library for generating and applying diffs between arbitrary data structures.

go get github.com/r3labs/diff/v3
INSTALL
IMPORT
SIG · R3LABS-DIFF-V3
R
r3labs-diff-v3
utilitygov3.0.2
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/r3labs/diff/v3

Compute and apply diffs between Go values.

package main import ( "fmt" "github.com/r3labs/diff/v3" ) func main() { a := map[string]interface{}{"key": "value"} b := map[string]interface{}{"key": "newvalue"} changes, _ := diff.Diff(a, b) fmt.Println(changes) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
r3labs-diff-v3 — go get r3labs-diff-v3 · libregistry