Go 1.25+ Standards
CommunityEnforce modern Go best practices.
AuthorGoldziher
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enforces modern Go programming standards, ensuring code quality, maintainability, and robustness for Go 1.25 and later versions.
Core Features & Use Cases
- Modern Go Features: Utilizes error wrapping (
fmt.Errorf("%w", err)) anderrors.Is/Asfor robust error handling. - Testing Standards: Implements table-driven tests with
t.Run()and black-box testing conventions for*_test.gofiles. - Linting & Analysis: Integrates
golangci-lintwith essential linters likeerrcheck,govet,staticcheck,gosec, and complexity checks (≤25 cyclomatic complexity). - Code Coverage: Aims for 80%+ coverage on business logic and uses
go test -racefor concurrency bug detection. - Package Structure: Adheres to standard Go project layout (
cmd/,internal/,pkg/). - Naming Conventions: Follows PascalCase for types, camelCase for variables, and SCREAMING_SNAKE_CASE for constants.
- Context Propagation: Ensures
Context.Contextis the first parameter in I/O functions and respects cancellation. - Structured Logging: Uses
zerologfor efficient, structured logging. - Use Case: Ensure all new Go projects adhere to the latest industry best practices for error handling, testing, and code structure, reducing technical debt and improving collaboration.
Quick Start
Apply the Go 1.25+ Standards to a Go project to ensure best practices are followed.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Go 1.25+ Standards Download link: https://github.com/Goldziher/spikard/archive/main.zip#go-1-25-standards Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.