askill
toolchain-go

toolchain-goSafety 100Repository

Go project toolchain -- build, test, lint, module management, and debugging.

0 stars
1.2k downloads
Updated 2/16/2026

Package Files

Loading files...
SKILL.md

Go Toolchain

Common commands for Go projects.

Build & run

go build ./...
go run .
go run cmd/server/main.go

Testing

go test ./...
go test -v ./...
go test -race ./...
go test -cover ./...
go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out -o coverage.html
go test ./pkg/api/ -run TestLogin -v

Benchmarks

go test -bench=. -benchmem ./...

Linting

# golangci-lint (recommended)
golangci-lint run ./...

# Built-in
go vet ./...

Formatting

gofmt -w .
goimports -w .

Module management

go mod init mymodule
go mod tidy
go mod download
go get github.com/pkg/errors@latest
go list -m all                    # List all dependencies
go list -m -u all                 # Check for updates

Build for different platforms

GOOS=linux GOARCH=amd64 go build -o bin/app-linux ./cmd/server
GOOS=darwin GOARCH=arm64 go build -o bin/app-darwin ./cmd/server

Debugging

# Delve debugger
dlv debug ./cmd/server
dlv test ./pkg/api/

Generate

go generate ./...

Notes

  • Go projects use go.mod for module definition and dependency management.
  • Use ./... to target all packages recursively.
  • go vet catches common mistakes; golangci-lint is more comprehensive.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

92/100Analyzed 2/25/2026

High-quality Go toolchain reference skill with well-structured, copy-paste ready commands covering build, test, lint, format, modules, cross-platform builds, debugging, and code generation. Includes helpful metadata with emoji and binary requirements. Located in dedicated skills folder with useful tags for discoverability. Missing a \"when to use\" trigger section, but otherwise comprehensive and highly actionable."

100
95
90
85
95

Metadata

Licenseunknown
Version-
Updated2/16/2026
PublisherThinkfleetAI

Tags

apici-cdgithublintingtesting