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

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