golang-hexagonal-architecture

Installation
SKILL.md

Go + Hexagonal Architecture 実装スキル

概要

Go言語でHexagonal Architecture(Ports & Adapters)を実装するためのベストプラクティス集。


Entity 設計原則

  • Entity は純粋なドメインオブジェクトとする
  • 外部パッケージ(DB、HTTP等)への依存を禁止
  • 値オブジェクトを活用してドメイン知識を表現する
  • バリデーションロジックは Entity 内に実装する
  • Entity のコンストラクタで不変条件を保証する
Installs
1
First Seen
Apr 10, 2026
golang-hexagonal-architecture — gizumon/ai-driven-sample