1
0
Fork 0
mirror of https://github.com/spf13/viper synced 2025-04-04 20:49:11 +00:00

Improve Unmarshal docs ()

Closes 
Closes  
This commit is contained in:
Márk Sági-Kazár 2019-06-14 17:17:12 +02:00 committed by Steve Francia
parent 3b4aca7571
commit 3349bd9cc2

View file

@ -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.