1 Star 0 Fork 20

go-course / go7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.go 295 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr.Yu 提交于 2022-08-07 11:29 . 补充script exporter
package conf
func NewDefaultConfig() *Config {
return &Config{
FileConfig: &fileConfig{
Path: "modules/rocketmq/collector/sample/data.txt",
},
}
}
type Config struct {
FileConfig *fileConfig `toml:"file"`
}
type fileConfig struct {
Path string `toml:"path" env:"DATA_FILE_PATH"`
}
1
https://gitee.com/go-course/go7.git
git@gitee.com:go-course/go7.git
go-course
go7
go7
1299c6d7ded7

搜索帮助