mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 12:17:53 +08:00
improve package gcfg
This commit is contained in:
parent
e222d92fb5
commit
ce640048b8
@ -11,6 +11,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/gogf/gf/internal/intlog"
|
||||||
"github.com/gogf/gf/os/gcmd"
|
"github.com/gogf/gf/os/gcmd"
|
||||||
"github.com/gogf/gf/text/gstr"
|
"github.com/gogf/gf/text/gstr"
|
||||||
|
|
||||||
@ -178,6 +179,7 @@ func (c *Config) SetPath(path string) error {
|
|||||||
c.jsons.Clear()
|
c.jsons.Clear()
|
||||||
c.paths.Clear()
|
c.paths.Clear()
|
||||||
c.paths.Append(realPath)
|
c.paths.Append(realPath)
|
||||||
|
intlog.Print("SetPath:", realPath)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,7 +253,7 @@ func (c *Config) AddPath(path string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
c.paths.Append(realPath)
|
c.paths.Append(realPath)
|
||||||
//glog.Debug("[gcfg] AddPath:", realPath)
|
intlog.Print("AddPath:", realPath)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user