feat: 初始化多机器人服务端项目框架
基于Go语言构建多机器人服务端框架,包含配置管理、事件总线、依赖注入等核心模块 添加项目基础结构、README、gitignore和初始代码实现
This commit is contained in:
11
internal/di/app.go
Normal file
11
internal/di/app.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package di
|
||||
|
||||
import "go.uber.org/fx"
|
||||
|
||||
// NewApp 创建应用实例
|
||||
func NewApp() *fx.App {
|
||||
return fx.New(
|
||||
Providers,
|
||||
Lifecycle,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user