mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Fix example code
Unmarshal -> viper.Unmarshal
This commit is contained in:
parent
b235f72abb
commit
3b4aca7571
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue