Improve Unmarshal docs

Closes #589
Closes  #588
This commit is contained in:
Márk Sági-Kazár 2019-06-13 10:54:21 +02:00 committed by GitHub
parent 3b4aca7571
commit 8c1a5f6c1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.