{"id":49869,"library":"x-tools","title":"Go Tools","description":"Package tools provides various Go tools and utilities, including goimports, gopls, and static analysis.","status":"active","version":"0.46.0","language":"go","source_language":null,"source_url":null,"tags":["tools","analysis","linter","goimports"],"install":[{"cmd":"go get golang.org/x/tools","lang":"bash","label":"Install golang.org/x/tools"}],"dependencies":[],"imports":[{"symbol":"analysis","correct":"golang.org/x/tools/go/analysis"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"golang.org/x/tools/go/analysis\"\n)\n\nfunc main() {\n\tfmt.Println(analysis.Analyzer{Name: \"example\"})\n}","lang":"go","description":"Use the analysis framework to define a static analysis pass."},"warnings":[{"fix":"Import only the specific subpackage you need (e.g., golang.org/x/tools/go/analysis).","message":"The x/tools module is a collection of many subpackages; importing the root module may pull in many dependencies.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'analysi':16,18 'go':1,7 'goimport':12,20 'gopl':13 'includ':11 'linter':19 'packag':3 'provid':5 'static':15 'tool':2,4,8,17 'util':10 'various':6","created_at":"2026-06-14T18:18:31.464059+00:00","updated_at":"2026-06-14T18:18:31.464059+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://cs.opensource.google/go/x/tools","github":null,"docs":"https://pkg.go.dev/golang.org/x/tools#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-14","next_check":"2026-12-11","install_tag":null}}