在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用go-vet
星标3
分支0
更新时间2025年12月18日 03:03
Fix go vet warnings
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Fix go vet warnings
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Handle hook scripts and paths for plugin packaging
Package claudefiles components into a valid Claude Code plugin
Package language-specific subsets of claudefiles
Plugin validation errors and fixes
Common channel patterns and idioms
Context cancellation patterns for graceful shutdown
| name | go-vet |
| description | Fix go vet warnings |
Built-in static analyzer that catches common mistakes.
go vet ./...
go vet ./pkg/...
// Bad
fmt.Printf("%d", "string")
// Good
fmt.Printf("%s", "string")
// Bad
return value
fmt.Println("never runs")
// Good
fmt.Println("runs")
return value
// Bad
Person{"Alice", 30}
// Good
Person{Name: "Alice", Age: 30}
// Bad
var p *int
fmt.Println(*p)
// Good
if p != nil {
fmt.Println(*p)
}
// Bad - mutex copied
func process(mu sync.Mutex) {
mu.Lock()
}
// Good - pass pointer
func process(mu *sync.Mutex) {
mu.Lock()
}
// Bad
ctx := context.TODO()
// Good
ctx := context.Background()
// or accept ctx as parameter
go vet ./... 2>&1 | tee vet.log