go-architecture

Solid

Use when laying out a new Go service, choosing an HTTP router or DB layer, or wiring dependencies. Not for concurrency (go-concurrency) or language idioms (go-core-idioms).

AI & Automation 25 stars 4 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

<objective> Structure Go 1.22+ backend services: the standard cmd/internal layout, choosing an HTTP router (net/http ServeMux, chi, echo/gin/fiber), constructor-based dependency injection, and type-safe database access with sqlc + pgx. Covers laying out a new Go project, choosing a router or DB layer, wiring dependencies, and reviewing an existing service's structure. Does not cover goroutines/channels concurrency patterns (see go-concurrency) or general language idioms (see go-core-idioms). </objective> # Go Architecture Opinionated, 2026-current guidance for structuring Go backend services. Favors the standard library and small, composable libraries over heavy frameworks. **Use when:** - Laying out a new Go module or service (directory structure, `cmd/`, `internal/`) - Choosing an HTTP router (stdlib `net/http` ServeMux, chi, echo/gin/fiber) - Choosing a database layer (sqlc + pgx, GORM) or wiring queries - Wiring dependencies (constructors, DI without a framework) - Reviewing an existing Go service for structural / architectural issues **Do NOT use for:** - Writing tests, benchmarks, fuzzing, coverage — use `go-testing-quality` - SOLID line-limit / interface-placement enforcement — use `fuse-solid:solid-go` - Non-Go backends (Laravel, Next.js, Rust) — use the matching expert - Frontend / UI work — use `fuse-design` or a framework expert --- ## Decision Map | Question | Load | |----------|------| | Where do files/packages go? | [project-layout.md](references/project-...

Details

Author
fusengine
Repository
fusengine/agents
Created
8 months ago
Last Updated
6 days ago
Language
CSS
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category