File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ This template is following the [recommended project layout](https://go.dev/doc/m
33
33
- ` configs/ ` : configuration files
34
34
- ` internal/ ` :
35
35
- ` worker/ ` : worker and test examples
36
- - ` bootstrap.go ` : bootstrap (modules, lifecycles, etc)
37
- - ` services .go` : services registration
36
+ - ` bootstrap.go ` : bootstrap
37
+ - ` register .go` : dependencies registration
38
38
39
39
### Makefile
40
40
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ func init() {
17
17
// RootDir is the application root directory.
18
18
var RootDir string
19
19
20
- // Bootstrapper can be used to load modules, options, services and bootstraps your application.
20
+ // Bootstrapper can be used to load modules, options, dependencies and bootstraps your application.
21
21
var Bootstrapper = fxcore .NewBootstrapper ().WithOptions (
22
- // modules
22
+ // modules registration
23
23
fxworker .FxWorkerModule ,
24
- // services
25
- ProvideServices (),
24
+ // dependencies registrations
25
+ Register (),
26
26
)
27
27
28
28
// Run starts the application, with a provided [context.Context].
Original file line number Diff line number Diff line change 6
6
"go.uber.org/fx"
7
7
)
8
8
9
- // ProvideServices is used to register the application services .
10
- func ProvideServices () fx.Option {
9
+ // Register is used to register the application dependencies .
10
+ func Register () fx.Option {
11
11
return fx .Options (
12
12
fxworker .AsWorker (worker .NewExampleWorker ),
13
13
)
You can’t perform that action at this time.
0 commit comments