go-linting

JamesPrial 的头像作者 JamesPrial

Go 静态分析。路由到特定工具

📖 中文导读:Go 静态分析。路由到特定工具 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: go-linting description: Go static analysis. Routes to specific tools.

Linting

Route by Tool

Quick Check

  • go vet ./... passes
  • go fmt applied
  • No unchecked errors

Common Workflow

go fmt ./...
go vet ./...
staticcheck ./...

Install Tools

go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest