Go project conventions

Project conventions with module caching, linting, security checks, and tests via Make

rcarmo Updated

File contents

Skill: Go project conventions

Goal

Provide a standard Go workflow with module caching, linting, security checks, and tests driven by Make.

Make targets (recommended)

  • make deps -> go mod download + install golangci-lint and gosec if missing
  • make vet -> go vet ./...
  • make lint -> golangci-lint run --timeout=5m
  • make security -> gosec ./...
  • make test -> go test -v -race -coverprofile=coverage.out ./...
  • make check -> make vet && make lint

rcarmo/go-te/tree/main/.github/skills/go commit 3d67c16f9e

Frequently asked questions

npx skillmds@latest add rcarmo/go-project-conventions-3