Go Architecture & Web Design

•
64
•

Builds idiomatic Go web applications using standard library patterns, Go 1.22+ routing, and robust dependency injection.

The go-architect skill provides a comprehensive framework for designing and reviewing production-grade Go web services. It prioritizes the Go standard library, specifically leveraging the enhanced ServeMux features introduced in Go 1.22 to eliminate unnecessary dependencies. By enforcing strict patterns for dependency injection, graceful shutdowns, and project organization, it helps developers move away from global state and 'magic' init functions toward explicit, testable, and maintainable architectures. Whether you are scaffolding a new microservice or refactoring a legacy codebase, this skill ensures your Go project follows modern best practices for performance and reliability.

Key Features

01Production-ready graceful shutdown patterns using context timeouts and signal handling
02Standardized project layout guidance for both flat and modular domain-driven architectures
03Advanced Go 1.22+ HTTP routing with native path parameters and method-based patterns
0464 GitHub stars
05Automated architectural review gates to identify and eliminate global variables and side effects
06Strict dependency injection enforcement via the Server struct and composition root patterns

Use Cases

01Migrating a legacy Go web app from third-party frameworks like Gin or Chi to native Go 1.22+ routing
02Refactoring untestable code by replacing global database variables with structured dependency injection
03Scaffolding a new Go microservice using idiomatic standard library patterns