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`
This commit is contained in:
premshree 2017-07-22 09:37:03 -04:00
parent df7314a14e
commit b71fae7753

View file

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