go-patterns

Installation
SKILL.md

Go Language Patterns & Best Practices

Description

Production Go patterns for Go 1.24+ covering the full development lifecycle. Includes idiomatic concurrency with errgroup and context cancellation, error wrapping with %w, HTTP servers with Chi router, PostgreSQL with pgx, gRPC services, table-driven testing, CLI tools with Cobra, and performance profiling with pprof. Covers Go 1.18+ generics, Go 1.22+ range-over-integers, and Go 1.23+ iterators.

Usage

Install this skill to get production-ready Go patterns including:

  • context.Context propagation for all I/O operations
  • errgroup for managing concurrent goroutines safely
  • Error wrapping with %w and errors.Is() / errors.As()
  • Standard project layout (cmd/, internal/, pkg/)
  • Worker pools, fan-out/fan-in, and select multiplexing
Installs
4
First Seen
Apr 23, 2026
go-patterns from skills.volces.com