General 742 installs

Go Development Patterns

by affaan-m/everything-claude-code

Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.

Skill content

Idiomatic Go patterns, best practices, and conventions for building robust applications.

- Covers core principles including simplicity over cleverness, useful zero values, and accepting interfaces while returning concrete types

- Includes error handling patterns with wrapping, custom error types, and proper error checking using errors.Is and errors.As

- Provides concurrency patterns for worker pools, context-based cancellation, graceful shutdown, and goroutine leak prevention

- Addresses interface design, package organization, struct composition with functional options, and memory optimization techniques

- Features anti-patterns to avoid, Go tooling integration, and a quick reference of Go idioms

Go Development Patterns

Idiomatic Go patterns and best practices for building robust, efficient, and maintainable applications.

When to Activate

- Writing new Go code

- Reviewing Go code

- Refactoring existing Go code

- Designing Go packages/modules

Core Principles

1. Simplicity and Clarity

Go favors simplicity over cleverness. Code should be obvious and easy to read.