Fix example code

Unmarshal -> viper.Unmarshal
This commit is contained in:
okazu-dm 2018-08-12 13:35:30 +09:00 committed by Márk Sági-Kazár
parent b235f72abb
commit 3b4aca7571
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}