Ai
3 Star 5 Fork 6

三三物联网/ssiot-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
options.go 499 Bytes
一键复制 编辑 原始数据 按行查看 历史
三三物联网 提交于 2023-04-03 00:22 +08:00 . 重构
package memory
import (
"gitee.com/sansaniot/ssiot-core/config/tool/loader"
"gitee.com/sansaniot/ssiot-core/config/tool/reader"
"gitee.com/sansaniot/ssiot-core/config/tool/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/sansaniot/ssiot-core.git
git@gitee.com:sansaniot/ssiot-core.git
sansaniot
ssiot-core
ssiot-core
v1.8.34

搜索帮助