Skip to content

Commit 4de6ff7

Browse files
authored
fix readme (#15)
fix: 2024-05-25 21:52:54
1 parent 1ccd536 commit 4de6ff7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# dix
2-
> dix是一个依赖注入框架
2+
> dix 是一个依赖注入框架
33
4-
> 它参考了dig的设计, 但是它能够完成更加复杂的依赖注入管理和namespace依赖隔离
5-
> https://github.com/uber-go/dig
4+
> dix 参考了 [user/dig](https://github.com/uber-go/dig) 的设计, 它能够完成更加复杂的依赖注入管理和namespace依赖隔离
65
76

87
## 功能描述
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 来进行依赖注入的数据隔离
1211
4. dix 支持 struct 对外提供多组依赖对象
1312
5. dix 支持 struct 依赖嵌套
1413
6. dix Inject 支持 func 和 struct 等多种模式进行数据注入
1514
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)

0 commit comments

Comments
 (0)