go-project-structure
CommunityOrganize Go services with a clear structure
Authordaominah
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a consistent, maintainable layout and package conventions to prevent tangled codebases where business logic and infrastructure are mixed, reducing onboarding friction and making testing and refactoring easier.
Core Features & Use Cases
- Directory layout: Clear roles for cmd, pkg/model, pkg/logic, pkg/driver, pkg/base, config, web, and doc to separate concerns.
- Conventions: Naming patterns, file placement, and package responsibilities that support testability and dependency inversion.
- Use Case: Bootstrapping a new Go microservice or refactoring an existing codebase to follow clean architecture principles for easier testing and deployment.
Quick Start
Apply the go-project-structure guidelines to scaffold your repository, move domain models into pkg/model, implement business logic in pkg/logic behind interfaces, and place external integrations in pkg/driver.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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-project-structure Download link: https://github.com/daominah/gostructure/archive/main.zip#go-project-structure 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 223,000+ vetted skills library on demand.