ing
This commit is contained in:
parent
4fa607e239
commit
fb70b256fb
|
@ -16,7 +16,6 @@ type Configurator interface {
|
||||||
SetConfigPath(in string) error
|
SetConfigPath(in string) error
|
||||||
Load(target interface{}, files ...string) error
|
Load(target interface{}, files ...string) error
|
||||||
LoadReader(target interface{}, ext string, in io.Reader) error
|
LoadReader(target interface{}, ext string, in io.Reader) error
|
||||||
Save(target interface{}, file string, overWrite bool) error
|
|
||||||
|
|
||||||
SetEnvPrefix(in string)
|
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
|
// Save store to configuration file from disk
|
||||||
func Save(target interface{}, file string, overWrite bool) error {
|
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 absPath string
|
||||||
var err error
|
var err error
|
||||||
if absPath, err = ABSPathify(file); nil != err {
|
if absPath, err = ABSPathify(file); nil != err {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user