This commit is contained in:
crusader 2017-09-21 11:29:30 +09:00
parent 4fa607e239
commit fb70b256fb

View File

@ -16,7 +16,6 @@ type Configurator interface {
SetConfigPath(in string) error
Load(target interface{}, files ...string) error
LoadReader(target interface{}, ext string, in io.Reader) error
Save(target interface{}, file string, overWrite bool) error
SetEnvPrefix(in string)
}
@ -88,9 +87,6 @@ func (c *config) LoadReader(target interface{}, ext string, in io.Reader) error
// Save store to configuration file from disk
func Save(target interface{}, file string, overWrite bool) error {
return _c.Save(target, file, overWrite)
}
func (c *config) Save(target interface{}, file string, overWrite bool) error {
var absPath string
var err error
if absPath, err = ABSPathify(file); nil != err {