{
  "id": "go/too-many-arguments",
  "signature": "too many arguments in call to fmt.Sprintf",
  "signature_zh": "调用 fmt.Sprintf 时参数过多",
  "regex": "too many arguments in call to .*",
  "domain": "go",
  "category": "compile_error",
  "subcategory": null,
  "root_cause": "The number of arguments passed to a variadic function like fmt.Sprintf exceeds the number of format verbs in the format string.",
  "root_cause_type": "generic",
  "root_cause_zh": "传递给像 fmt.Sprintf 这样的可变参数函数的参数数量超过了格式字符串中的格式动词数量。",
  "versions": [
    {
      "version": "go1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing all arguments except the format string.",
      "why_fails": "The format string likely contains verbs that need arguments; removing them will cause a different compile error about missing arguments.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding a newline to the format string.",
      "why_fails": "Newlines do not consume arguments; the mismatch persists.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Match the number of format verbs (%s, %d, etc.) to the number of arguments. Add or remove verbs as needed.",
      "success_rate": 0.95,
      "how": "Match the number of format verbs (%s, %d, etc.) to the number of arguments. Add or remove verbs as needed.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a single %v verb with a struct or map to capture multiple values if the exact format is flexible.",
      "success_rate": 0.8,
      "how": "Use a single %v verb with a struct or map to capture multiple values if the exact format is flexible.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Match the number of format verbs (%s, %d, etc.) to the number of arguments. Add or remove verbs as needed.",
    "Use a single %v verb with a struct or map to capture multiple values if the exact format is flexible."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pkg.go.dev/fmt",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-04-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}