typo
This commit is contained in:
parent
50a18daf05
commit
6b75682bdf
@ -26,7 +26,7 @@ type AgentConfig struct {
|
|||||||
v *viper.Viper
|
v *viper.Viper
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read 从给点的文件目录加载配置文件
|
// Read 从给定的文件目录加载配置文件
|
||||||
func (c *AgentConfig) Read(path string) error {
|
func (c *AgentConfig) Read(path string) error {
|
||||||
c.v = viper.New()
|
c.v = viper.New()
|
||||||
c.v.SetConfigFile(path)
|
c.v.SetConfigFile(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user