We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e377188 commit 253e74cCopy full SHA for 253e74c
utils/kmapstructure/mapstructure_examples_test.go
@@ -10,6 +10,7 @@ func ExampleDecode() {
10
Age int
11
Emails []string
12
Extra map[string]string
13
+ XInfo string `mapstructure:"x-info"`
14
}
15
16
// This input can come from anywhere, but typically comes from
@@ -22,6 +23,7 @@ func ExampleDecode() {
22
23
"extra": map[string]string{
24
"twitter": "mitchellh",
25
},
26
+ "x-info": "asdasd",
27
28
29
var result Person
0 commit comments