{"id":50911,"library":"hexops-gotextdiff","title":"gotextdiff","description":"Package gotextdiff supports a pluggable diff algorithm.","status":"active","version":"1.0.3","language":"go","source_language":null,"source_url":"https://github.com/hexops/gotextdiff","tags":["diff","text","unified","myers"],"install":[{"cmd":"go get github.com/hexops/gotextdiff","lang":"bash","label":"Install github.com/hexops/gotextdiff"}],"dependencies":[],"imports":[{"symbol":"gotextdiff","correct":"github.com/hexops/gotextdiff"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/hexops/gotextdiff\"\n\t\"github.com/hexops/gotextdiff/myers\"\n)\n\nfunc main() {\n\ta := \"hello\\nworld\"\n\tb := \"hello\\ngo\"\n\tedits := myers.ComputeEdits(\"\", a, b)\n\tdiff := fmt.Sprint(gotextdiff.ToUnified(\"a.txt\", \"b.txt\", a, edits))\n\tfmt.Println(diff)\n}","lang":"go","description":"Compute and print a unified diff between two strings."},"warnings":[],"env_vars":null,"search_vec":"'algorithm':8 'diff':7,9 'gotextdiff':1,3 'myer':12 'packag':2 'pluggabl':6 'support':4 'text':10 'unifi':11","created_at":"2026-06-15T05:13:50.752459+00:00","updated_at":"2026-06-15T05:13:50.752459+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/hexops/gotextdiff","github":"https://github.com/hexops/gotextdiff","docs":"https://pkg.go.dev/github.com/hexops/gotextdiff#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}}