From 8c1a5f6c1c24632f6ebb1b60b412768f6d4b6f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20S=C3=A1gi-Kaz=C3=A1r?= Date: Thu, 13 Jun 2019 10:54:21 +0200 Subject: [PATCH] Improve Unmarshal docs Closes #589 Closes #588 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c7cfab1..24ffb20 100644 --- a/README.md +++ b/README.md @@ -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.