mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
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:
parent
df7314a14e
commit
b71fae7753
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ type config struct {
|
||||||
|
|
||||||
var C config
|
var C config
|
||||||
|
|
||||||
err := Unmarshal(&C)
|
err := viper.Unmarshal(&C)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to decode into struct, %v", err)
|
t.Fatalf("unable to decode into struct, %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue