跳到主要内容

技能通用工作流

Go 依赖注入

包名 golang-dependency-injection

讲解 Go 依赖注入的原因和手动构造注入,并比较 wire、dig、fx 与 samber/do 等库怎么选。

.skillgolang-dependency-injection.skill下载技能包
安装量
4.2 万次安装
来源
samber/cc-skills-golang
许可证
许可证 MIT
分类
通用工作流

INSTALL

npx skills add https://github.com/samber/cc-skills-golang --skill golang-dependency-injection
这是第三方技能原文。本站没有改写正文,也不是作者。安装前请自己读一遍,并遵守技能自带的许可证。

来源

快照日期 2026年11月27日

原文里的字段

user-invocable
true
许可证
MIT
兼容性
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
作者
samber
版本
1.3.1
allowed-tools
Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch mcp__context7__resolve-library-id mcp__context7__query-docs AskUserQuestion
paths
**/*.go

正在打开文件…