主要更新: - 更新 go.mod/go.sum 依赖 - 重新生成 Ent ORM 代码 - 更新 Wire 依赖注入配置 - 添加 docker-compose.override.yml 到 .gitignore - 更新 README 文档(Simple Mode 说明和已知问题) - 清理调试日志 - 其他代码优化和格式修复
14 lines
232 B
Go
14 lines
232 B
Go
package config
|
|
|
|
import "github.com/google/wire"
|
|
|
|
// ProviderSet 提供配置层的依赖
|
|
var ProviderSet = wire.NewSet(
|
|
ProvideConfig,
|
|
)
|
|
|
|
// ProvideConfig 提供应用配置
|
|
func ProvideConfig() (*Config, error) {
|
|
return Load()
|
|
}
|