1 Star 2 Fork 0

falling-ts/gower

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.go 474 Bytes
一键复制 编辑 原始数据 按行查看 历史
falling-ts 提交于 2024-11-28 23:06 +08:00 . feat 包域名修改为 gitee.com
package providers
import (
"gitee.com/falling-ts/gower/configs"
_ "gitee.com/falling-ts/gower/envs"
"gitee.com/falling-ts/gower/services"
"gitee.com/falling-ts/gower/services/config"
"github.com/caarlos0/env/v7"
)
var _ services.Config = (*config.Service)(nil)
func init() {
P.Register("config", func(...services.Service) services.Service {
c := new(configs.Config)
if err := env.Parse(c); err != nil {
panic(err)
}
return config.Mount(c).Init()
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/falling-ts/gower.git
git@gitee.com:falling-ts/gower.git
falling-ts
gower
gower
v0.9.2

搜索帮助