{
  "id": "go/imported-and-not-used",
  "signature": "./main.go:5:2: imported and not used: \"fmt\"",
  "signature_zh": "./main.go:5:2: 导入了但未使用：\"fmt\"",
  "regex": "\\./main\\.go:5:2:\\ imported\\ and\\ not\\ used:\\ \"fmt\"",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "An import is declared but no identifier from that package is referenced in the file. Go treats unused imports as a compile error.",
  "root_cause_type": "generic",
  "root_cause_zh": "声明了导入，但文件中未引用该包的任何标识符。Go 将未使用的导入视为编译错误。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "linters respect it but the compiler still errors",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "compiles but is dead code and often flagged by vet",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "does not disable unused-import errors",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "// delete the import line, or run:\ngoimports -w ./...\n# or: gofmt -w main.go",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "import _ \"net/http/pprof\"",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.95,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}