This commit is contained in:
Akkia
2022-04-13 12:28:45 +08:00

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)