# ./main.go:5:2: 导入了但未使用："fmt"

- **ID:** `go/imported-and-not-used`
- **领域:** go
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

声明了导入，但文件中未引用该包的任何标识符。Go 将未使用的导入视为编译错误。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.x | active | — | — |

## 解决方案

1. **** (98% 成功率)
   ```
   // delete the import line, or run:
goimports -w ./...
# or: gofmt -w main.go
   ```
2. **** (90% 成功率)
   ```
   import _ "net/http/pprof"
   ```

## 无效尝试

- **** — linters respect it but the compiler still errors (100% 失败率)
- **** — compiles but is dead code and often flagged by vet (80% 失败率)
- **** — does not disable unused-import errors (100% 失败率)
