mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Merge fd8ee01d89
into b5bf975e58
This commit is contained in:
commit
5adc7a2cdc
1 changed files with 3 additions and 3 deletions
|
@ -630,11 +630,11 @@ import (
|
||||||
|
|
||||||
func yamlStringSettings() string {
|
func yamlStringSettings() string {
|
||||||
c := viper.AllSettings()
|
c := viper.AllSettings()
|
||||||
bs, err := yaml.Marshal(c)
|
bs, err := yaml.Marshal(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to marshal config to YAML: %v", err)
|
t.Fatalf("unable to marshal config to YAML: %v", err)
|
||||||
}
|
}
|
||||||
return string(bs)
|
return string(bs)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue