From 3b4aca75714a37276c4b1883630bd98c02498b73 Mon Sep 17 00:00:00 2001 From: okazu-dm Date: Sun, 12 Aug 2018 13:35:30 +0900 Subject: [PATCH] Fix example code Unmarshal -> viper.Unmarshal --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 304a3e6..c7cfab1 100644 --- a/README.md +++ b/README.md @@ -637,7 +637,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) }