This commit is contained in:
naiba
2022-04-12 20:11:19 +08:00
committed by GitHub
parent 50a18daf05
commit 6b75682bdf

View File

@@ -26,7 +26,7 @@ type AgentConfig struct {
v *viper.Viper
}
// Read 从给的文件目录加载配置文件
// Read 从给的文件目录加载配置文件
func (c *AgentConfig) Read(path string) error {
c.v = viper.New()
c.v.SetConfigFile(path)