mirror of
https://github.com/spf13/viper
synced 2024-11-04 20:27:02 +00:00
parent
3b4aca7571
commit
3349bd9cc2
1 changed files with 2 additions and 0 deletions
|
@ -643,6 +643,8 @@ if err != nil {
|
|||
}
|
||||
```
|
||||
|
||||
Viper uses [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) under the hood for unmarshaling values which uses `mapstructure` tags by default.
|
||||
|
||||
### Marshalling to string
|
||||
|
||||
You may need to marshal all the settings held in viper into a string rather than write them to a file.
|
||||
|
|
Loading…
Reference in a new issue