Improve Unmarshal docs (#713)

Closes #589
Closes  #588
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 ### Marshalling to string
You may need to marshal all the settings held in viper into a string rather than write them to a file. You may need to marshal all the settings held in viper into a string rather than write them to a file.