lang-golisted
Install: claude install-skill paruff/uFawkesAI
# Skill: Language — Go
> **Load trigger:** `"load lang-go skill"`
> **Stack:** Go 1.22+, golangci-lint, go vet, go test, go test -cover, go mod
> **Token cost:** Low
## Toolchain Reference
| Gate | Tool | Command | Config file |
| --------------- | ------------- | ------------------------------------------------- | ---------------------- |
| Lint | golangci-lint | `golangci-lint run ./...` | `.golangci.yml` |
| Vet | go vet | `go vet ./...` | none |
| Test | go test | `go test ./...` | none |
| Coverage | go test | `go test -cover -coverprofile=coverage.out ./...` | none |
| Coverage report | go tool | `go tool cover -func=coverage.out` | none |
| Preflight | shell | `./scripts/preflight.sh` | `scripts/preflight.sh` |
## File Layout Convention
```
cmd/
[service-name]/
main.go ← entry point only; no business logic
internal/
services/ ← business logic
handlers/ ← HTTP handlers (net/http or chi/gin)
models/ ← data types and interfaces
utils/ ← pure utility functions
pkg/
[shared-packages]/ ← packages safe to import externally
go.mod