# go: go.mod has malformed module directive: "module" requires one argument

- **ID:** `go/module-directive-error`
- **Domain:** go
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The module directive in go.mod is missing the module name or is malformed.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.16 | active | — | — |
| 1.17 | active | — | — |

## Workarounds

1. **修正module指令** (90% success)
   ```
   module example.com/myproject
   ```
2. **重新生成go.mod** (80% success)
   ```
   rm go.mod && go mod init example.com/myproject
   ```

## Dead Ends

- **添加空模块名** — 模块名不能为空，否则会导致其他错误。 (90% fail)
- **注释掉module行** — go.mod必须包含module指令。 (100% fail)
