← ClaudeAtlas

lang-golisted

Go toolchain: golangci-lint, go vet, go test, go mod. CI gate commands, file layout, interface patterns. Use when working on a Go project.
paruff/uFawkesAI · ★ 2 · AI & Automation · score 74
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