mirror of
https://github.com/spf13/viper
synced 2025-05-07 04:37:20 +00:00
Fix example code
Unmarshal -> viper.Unmarshal
This commit is contained in:
parent
907c19d40d
commit
2f85719c3f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue