Commit 00ef2f5
authored
Refactor/cost speed (#23)
* docs(di): Improve documentation with examples
* docs(di): Update function comments for clarity
* refactor(util): simplify cycle detection logic
* fix: barry quick fix, 2025-04-10 22:09:25
* fix: barry quick fix, 2025-04-10 22:20:12
* refactor: rename dix_internal to dixinternal
* fix: barry quick fix, 2025-06-05 15:12:00
* fix: barry quick fix, 2025-06-05 15:12:14
* fix: barry quick fix, 2025-06-06 20:41:18
* fix: barry quick fix, 2025-06-06 20:44:07
* fix: barry quick fix, 2025-06-06 20:50:21
* fix: barry quick fix, 2025-06-08 22:19:40
* fix: barry quick fix, 2025-06-08 22:21:00
* fix: barry quick fix, 2025-06-09 13:28:10
* fix: barry quick fix, 2025-06-09 13:28:21
* fix: barry quick fix, 2025-06-09 13:29:34
* fix: barry quick fix, 2025-06-09 13:33:03
* fix: barry quick fix, 2025-06-17 13:40:16
* fix: barry quick fix, 2025-06-22 12:59:02
* fix: barry quick fix, 2025-06-22 13:08:57
* fix: barry quick fix, 2025-06-22 20:43:34
* fix: barry quick fix, 2025-06-22 20:54:08
* fix: barry quick fix, 2025-06-22 20:57:50
* fix: barry quick fix, 2025-06-22 20:59:17
* fix: barry quick fix, 2025-06-22 21:04:58
* fix: barry quick fix, 2025-06-23 10:16:21
* fix: enhance type handling and graph rendering in Dix
* chore: add golangci-lint configuration file
* chore: update golangci-lint configuration and GitHub Actions for improved linting
* chore: update Makefile to include linting as a phony target
* refactor: update example usage in global.go to use dixglobal methods
* refactor: replace Check method with Validate for improved error handling in options
* fix: barry quick fix, 2025-06-26 18:52:48
* fix: barry quick fix, 2025-06-26 18:53:36
* fix: barry quick fix, 2025-06-26 19:48:07
* fix: barry quick fix, 2025-06-27 18:59:59
* refactor(dixinternal): 重构错误处理和依赖注入逻辑
- 优化错误处理,使用 result.Result 类型统一处理错误
-重构依赖注入逻辑,提高代码的可读性和可维护性
- 更新 go.mod 和 go.sum 文件,升级 funk 依赖到 v0.5.66-alpha.2版本
* refactor(dix): replace errors.NewErr with errors.WrapErr
- Update error handling in dixinternal/dix.go to use errors.WrapErr instead of errors.NewErr
- Upgrade github.com/pubgo/funk dependency to v0.5.66-alpha.3 in go.mod files
* refactor(dixinternal): improve error handling in inject function
- Rename error variable to 'r' for consistency- Use CatchErr() method to handle errors from injectFunc calls
- Refactor error creation using WrapErr() for better error context
- Remove commented-out debug code
* refactor(dix): improve error handling and logging
* fix: barry quick fix, 2025-06-28 22:20:201 parent 98ac5ce commit 00ef2f5
File tree
38 files changed
+2439
-921
lines changed- .github/workflows
- dix_internal
- dixglobal
- dixinternal
- di
- example
- cycle
- func
- handler
- inject_method
- lazy
- list-nil
- list
- map-nil
- map
- struct-in
- struct-out
- test-return-error
38 files changed
+2439
-921
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments