mirror of
https://github.com/spf13/viper
synced 2024-11-20 03:47:05 +00:00
fix indentation of marshalling code sample
This commit is contained in:
parent
62edee3196
commit
fd8ee01d89
1 changed files with 3 additions and 3 deletions
|
@ -625,11 +625,11 @@ import (
|
|||
|
||||
func yamlStringSettings() string {
|
||||
c := viper.AllSettings()
|
||||
bs, err := yaml.Marshal(c)
|
||||
if err != nil {
|
||||
bs, err := yaml.Marshal(c)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to marshal config to YAML: %v", err)
|
||||
}
|
||||
return string(bs)
|
||||
return string(bs)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue