This commit is contained in:
naiba 2022-04-12 20:11:19 +08:00 committed by GitHub
parent 50a18daf05
commit 6b75682bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)