This commit is contained in:
Akkia 2022-04-13 12:28:45 +08:00
commit 5d4566080d
No known key found for this signature in database
GPG Key ID: 464BA42A151C1E0F

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)