mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
Remove extra comments
This commit is contained in:
parent
a694a73d31
commit
75bbdad0c3
1 changed files with 0 additions and 5 deletions
5
viper.go
5
viper.go
|
@ -1239,10 +1239,6 @@ func (v *Viper) SafeWriteConfigAs(filename string) error {
|
|||
return v.writeConfig(filename, false)
|
||||
}
|
||||
|
||||
// WriteConfigKey writes given key and value to file.
|
||||
|
||||
// WriteConfigKeyAs writes given key and value to a given filename.
|
||||
|
||||
func keyExists(k string, m map[string]interface{}) string {
|
||||
lk := strings.ToLower(k)
|
||||
for mk := range m {
|
||||
|
@ -1369,7 +1365,6 @@ func (v *Viper) unmarshalReader(in io.Reader, c map[string]interface{}) error {
|
|||
func marshalWriter(out afero.File, c map[string]interface{}, configType string) error {
|
||||
return v.marshalWriter(out, c, configType)
|
||||
}
|
||||
|
||||
func (v *Viper) marshalWriter(out afero.File, c map[string]interface{}, configType string) error {
|
||||
return marshalConfigWriter(out, c, configType)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue