go-project-layout
星标10
分支3
更新时间2026年1月31日 05:17
Go 프로젝트를 새로 생성하거나 구조를 변경할 때 clean architecture 폴더 구조를 적용합니다.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Go 프로젝트를 새로 생성하거나 구조를 변경할 때 clean architecture 폴더 구조를 적용합니다.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | go-project-layout |
| description | Go 프로젝트를 새로 생성하거나 구조를 변경할 때 clean architecture 폴더 구조를 적용합니다. |
| user-invocable | true |
| model | haiku |
| allowed-tools | Read, Grep, Glob |
아래는 이 프로젝트에서 사용하는 clean architecture 레이아웃입니다. 새 Go 프로젝트를 생성할 때 이 구조를 따르세요.
!tree project-layout/go-clean-arch-v2 -I vendor -L 3
cmd/main.go)domain/errors.go)domain/mocks/에 위치{도메인명}/ (예: article/, author/)handler.go: HTTP 핸들러 (Echo 라우팅)usecase.go: 비즈니스 로직 구현repository.go: 데이터 접근 구현*_test.go: 각 파일의 테스트pkg/config/: Viper 기반 설정 관리database/: DB 연결 설정middleware/: CORS, 인증 등 공통 미들웨어cmd/ → {도메인}/ → domain/
↓
pkg/