{
  "id": "go/io-writer-closed",
  "signature": "io: read/write on closed pipe",
  "signature_zh": "io: 在已关闭的管道上读写",
  "regex": "io:\\ read/write\\ on\\ closed\\ pipe",
  "domain": "go",
  "category": "io_error",
  "subcategory": null,
  "root_cause": "Attempting to read from or write to an io.Pipe that has already been closed.",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试在已关闭的 io.Pipe 上进行读取或写入。",
  "versions": [
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Leads to data corruption or panic",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Cannot reopen a closed pipe; need to create a new one",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pr, pw := io.Pipe(); defer pw.Close(); // ensure proper close order",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use sync.Once to close the pipe only once",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}