Skip to main content

golang-manual-di

星标10
分支3
更新时间2026年4月4日 11:23

Guides manual dependency injection wiring for Go services: three-tier naming taxonomy (Provide/MustProvide/Must), Must-pattern entrypoints, OS-signal-driven context lifecycle, common provider structs, infrastructure must-builders, interface-segregated bus registration, decorator/tracing wrappers, and per-responsibility DI file layout. Invoked when asked to wire or scaffold a Go service DI layer, or when reviewing code inside a di/ or wire/ package.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
2 个文件
SKILL.md
readonly