{"id":51598,"library":"schollz-closestmatch","title":"closestmatch","description":"A Go library for finding the closest match to a string from a set of strings.","status":"active","version":"2.1.0+incompatible","language":"go","source_language":null,"source_url":"https://github.com/schollz/closestmatch","tags":["string-matching","fuzzy","search","utility"],"install":[{"cmd":"go get github.com/schollz/closestmatch","lang":"bash","label":"Install github.com/schollz/closestmatch"}],"dependencies":[],"imports":[{"symbol":"closestmatch","correct":"github.com/schollz/closestmatch"}],"quickstart":{"code":"package main\n\nimport \"github.com/schollz/closestmatch\"\n\nfunc main() {\n\twords := []string{\"cat\", \"dog\", \"bird\"}\n\tcm := closestmatch.New(words, []int{2, 3, 4})\n\tprintln(cm.Closest(\"dogg\"))\n}","lang":"go","description":"Find the closest matching word from a list"},"warnings":[],"env_vars":null,"search_vec":"'closest':8 'closestmatch':1 'find':6 'fuzzi':21 'go':3 'librari':4 'match':9,20 'search':22 'set':15 'string':12,17,19 'string-match':18 'util':23","created_at":"2026-06-15T06:22:55.641743+00:00","updated_at":"2026-06-15T06:22:55.641743+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/schollz/closestmatch","github":"https://github.com/schollz/closestmatch","docs":"https://pkg.go.dev/github.com/schollz/closestmatch#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}}