File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
# dix
2
- > dix是一个依赖注入框架
2
+ > dix 是一个依赖注入框架
3
3
4
- > 它参考了dig的设计, 但是它能够完成更加复杂的依赖注入管理和namespace依赖隔离
5
- > https://github.com/uber-go/dig
4
+ > dix 参考了 [ user/dig] ( https://github.com/uber-go/dig ) 的设计, 它能够完成更加复杂的依赖注入管理和namespace依赖隔离
6
5
7
6
8
7
## 功能描述
9
- 1 . 依赖注入循环检测
10
- 2 . dix 支持func , struct, map, list作为注入参数
11
- 3 . 支持 map key 作为 namespace 来进行依赖注入的数据隔离
8
+ 1 . dix 支持依赖循环检测
9
+ 2 . dix 支持 func , struct, map, list 作为注入参数
10
+ 3 . dix 支持 map key 作为 namespace 来进行依赖注入的数据隔离
12
11
4 . dix 支持 struct 对外提供多组依赖对象
13
12
5 . dix 支持 struct 依赖嵌套
14
13
6 . dix Inject 支持 func 和 struct 等多种模式进行数据注入
15
14
7 . dix 对象提供和注入对于原对象无任何侵入
16
- 8 . 详情请看[ Example] ( ./example/struct-in/main.go )
15
+ 8 . dix 被 [ pubgo/lava] ( https://github.com/pubgo/lava/blob/master/cmds/app/cmd.go ) 开发框架依赖
16
+ 9 . dix 具体业务使用 [ lava/example] ( https://github.com/pubgo/lava/blob/master/internal/example/grpc/internal/bootstrap/boot.go )
17
+ 10 . 详情请看 [ test example] ( ./example/struct-in/main.go )
You can’t perform that action at this time.
0 commit comments