{"id":53431,"library":"r3labs-diff-v2","title":"r3labs/diff","description":"A Go library for computing and applying diffs between arbitrary data structures.","status":"active","version":"2.15.1","language":"go","source_language":null,"source_url":"https://github.com/r3labs/diff","tags":["diff","comparison","data-structures","utility"],"install":[{"cmd":"go get github.com/r3labs/diff/v2","lang":"bash","label":"Install github.com/r3labs/diff/v2"}],"dependencies":[],"imports":[{"symbol":"diff","correct":"github.com/r3labs/diff/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/r3labs/diff/v2\"\n)\n\nfunc main() {\n\ta := map[string]int{\"x\": 1}\n\tb := map[string]int{\"x\": 2}\n\tchanges, _ := diff.Diff(a, b)\n\tfmt.Println(changes)\n}","lang":"go","description":"Compute a diff between two maps."},"warnings":[],"env_vars":null,"search_vec":"'appli':8 'arbitrari':11 'comparison':15 'comput':6 'data':12,17 'data-structur':16 'diff':9,14 'go':3 'librari':4 'r3labs/diff':1 'structur':13,18 'util':19","created_at":"2026-06-15T07:39:45.918551+00:00","updated_at":"2026-06-15T07:39:45.918551+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/r3labs/diff","github":"https://github.com/r3labs/diff","docs":"https://pkg.go.dev/github.com/r3labs/diff/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}