{
  "id": "go/invalid-go-mod-file",
  "signature": "go: parsing go.mod: unexpected end of JSON input",
  "signature_zh": "go: 解析 go.mod 时出错: 意外的 JSON 输入结束",
  "regex": "go:\\ parsing\\ go\\.mod:\\ unexpected\\ end\\ of\\ JSON\\ input",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The go.mod file is malformed, possibly due to corruption or incorrect manual editing.",
  "root_cause_type": "generic",
  "root_cause_zh": "go.mod 文件格式错误，可能是由于损坏或手动编辑不正确。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Running 'go mod tidy' to fix the file.",
      "why_fails": "Go cannot parse the file to begin with; tidy requires valid syntax.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding random text to the end of go.mod to complete JSON.",
      "why_fails": "Go.mod is not JSON; it's a custom format. Adding JSON will cause more errors.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Restore go.mod from version control or a backup.",
      "success_rate": 0.9,
      "how": "Use 'git checkout go.mod' or copy from a known good state.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Recreate go.mod by running 'go mod init' and re-adding dependencies.",
      "success_rate": 0.8,
      "how": "Backup current go.mod, delete it, run 'go mod init <module>', then 'go get' each dependency.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}