# go: 模块路径未找到

- **ID:** `go/module-path-not-found`
- **领域:** go
- **类别:** module_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

模块路径在任何代理或 VCS 上都不存在，可能是由于拼写错误或模块从未发布。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.21 | active | — | — |
| 1.22 | active | — | — |
| 1.23 | active | — | — |

## 解决方案

1. **Verify the module path spelling and check the repository.** (90% 成功率)
   ```
   Search for the module on GitHub or pkg.go.dev. Correct the import path in your code.
   ```
2. **Use a different module that provides similar functionality.** (70% 成功率)
   ```
   Find an alternative package on pkg.go.dev and update imports accordingly.
   ```

## 无效尝试

- **Using 'go get -u' to update all modules.** — The module doesn't exist; updating won't find it. (100% 失败率)
- **Adding a replace directive to a local path that doesn't exist.** — The local path must contain the module; otherwise, it fails with a different error. (80% 失败率)
