mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
Update invocations
This commit is contained in:
parent
88c1d9fbd9
commit
59bd5de384
1 changed files with 2 additions and 2 deletions
4
viper.go
4
viper.go
|
@ -1266,7 +1266,7 @@ func (v *Viper) writeConfig(filename string, force bool) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return v.marshalWriter(f, configType)
|
||||
return v.MarshalWriter(f, configType)
|
||||
}
|
||||
|
||||
// Unmarshal a Reader into a map.
|
||||
|
@ -1331,7 +1331,7 @@ func (v *Viper) unmarshalReader(in io.Reader, c map[string]interface{}) error {
|
|||
|
||||
// MarshalWriter will marshal a map into Writer for the default config
|
||||
func MarshalWriter(f afero.File, configType string) error {
|
||||
return v.marshalWriter(f, configType)
|
||||
return v.MarshalWriter(f, configType)
|
||||
}
|
||||
|
||||
// MarshalWriter will marshal a map into Writer.
|
||||
|
|
Loading…
Reference in a new issue