Go Hexagonal Architecture
CommunityBuild Go apps with hexagonal architecture.
Software Engineering#go#domain-driven-design#software-architecture#hexagonal-architecture#ports-and-adapters#service-layer#architecture-pattern
Authoregravert
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It provides an opinionated blueprint for building Go services using a hexagonal (ports-and-adapters) architecture, helping teams create maintainable, testable, and evolvable codebases by strictly separating domain logic from infrastructure.
Core Features & Use Cases
- Opinionated project layout for Go services (cmd/, internal/, storage/adapters) with clear separation of domain, service, and infrastructure.
- Demonstrates translation between domain models and persistence, plus zero-dependency domain entities to enable pure logic testing.
- Use cases include building new services, refactoring monoliths, and teaching teams a scalable architecture pattern.
Quick Start
Create a new Go service and structure it using a ports-and-adapters layout with clear domain, service, and storage boundaries.
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 Hexagonal Architecture Download link: https://github.com/egravert/egravert-marketplace/archive/main.zip#go-hexagonal-architecture 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.