From b71fae7753b8edac832a049bfeaf06cfbd636a6e Mon Sep 17 00:00:00 2001 From: premshree Date: Sat, 22 Jul 2017 09:37:03 -0400 Subject: [PATCH] Viper `Unmarshal` example fix The example for "Unmarshaling" in the README calls `Unmarshal` without a receiver. It might be clearer to indicate the receiver, either `viper` or a `viper_runtime` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e723d4..d467592 100644 --- a/README.md +++ b/README.md @@ -562,7 +562,7 @@ type config struct { var C config -err := Unmarshal(&C) +err := viper.Unmarshal(&C) if err != nil { t.Fatalf("unable to decode into struct, %v", err) }