{
  "id": "go/receive-from-closed-channel",
  "signature": "panic: receive from closed channel (in goroutine)",
  "signature_zh": "恐慌：从已关闭的通道接收数据（在协程中）",
  "regex": "panic:\\ receive\\ from\\ closed\\ channel\\ \\(in\\ goroutine\\)",
  "domain": "go",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "从已关闭的通道接收数据通常不会panic，但如果接收方尝试从nil通道或类型断言时错误处理不当，可能触发panic。",
  "root_cause_type": "generic",
  "root_cause_zh": "从已关闭的通道接收数据通常不会panic，但如果接收方尝试从nil通道或类型断言时错误处理不当，可能触发panic。",
  "versions": [
    {
      "version": "1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "关闭后接收会立即返回零值，但多次接收可能混淆逻辑，导致错误处理。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "range会在通道关闭时退出，但如果循环外有其他接收，可能遗漏。",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "v, ok := <-ch; if !ok { /* 处理关闭 */ }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "for v := range ch { /* 处理 */ }",
      "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.8,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}