Ai
1 Star 0 Fork 0

青榄/goadmincore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
options.go 478 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangxinghong 提交于 2021-10-06 00:02 +08:00 . 修改mod
package memory
import (
"gitee.com/qlanwl/goadmincore/config/loader"
"gitee.com/qlanwl/goadmincore/config/reader"
"gitee.com/qlanwl/goadmincore/config/source"
)
// WithSource appends a source to list of sources
func WithSource(s source.Source) loader.Option {
return func(o *loader.Options) {
o.Source = append(o.Source, s)
}
}
// WithReader sets the config reader
func WithReader(r reader.Reader) loader.Option {
return func(o *loader.Options) {
o.Reader = r
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qlanwl/goadmincore.git
git@gitee.com:qlanwl/goadmincore.git
qlanwl
goadmincore
goadmincore
e99d2202423a

搜索帮助