Fix example code

Unmarshal -> viper.Unmarshal
This commit is contained in:
okazu-dm 2018-08-12 13:35:30 +09:00
parent 907c19d40d
commit 2f85719c3f

View file

@ -585,7 +585,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)
}