{
  "id": "go/undefined-symbol",
  "signature": "./main.go:12:9: undefined: foo.Bar",
  "signature_zh": "./main.go:12:9: 未定义：foo.Bar",
  "regex": "\\./main\\.go:12:9:\\ undefined:\\ foo\\.Bar",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The identifier does not exist in the imported package (renamed, unexported, or the wrong package version). Often after a dependency upgrade.",
  "root_cause_type": "generic",
  "root_cause_zh": "所引用的标识符在导入的包中不存在（被重命名、未导出，或版本不对）。常见于依赖升级后。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "the symbol still does not exist in that package",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "undefined symbols are compile errors, not vet warnings",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "invalid syntax; cannot shadow package members",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "go doc github.com/foo/bar.Bar\ngo doc github.com/foo/bar | grep -i bar",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "go get github.com/foo/bar@v1.2.0\ngo mod tidy",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}