Skip to content

Commit 2590662

Browse files
Run golangci-lint
1 parent d33500b commit 2590662

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mapstructure_examples_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ func ExampleDecode_decodeHookFunc() {
300300
}
301301

302302
type Person struct {
303-
Name string
303+
Name string
304304
Location PersonLocation
305305
}
306306

307307
// Example of parsing messy input: here we have latitude, longitude squashed into
308308
// a single string field. We write a custom DecodeHookFunc to parse the '#' separated
309309
// values into a PersonLocation struct.
310310
input := map[string]interface{}{
311-
"name": "Mitchell",
311+
"name": "Mitchell",
312312
"location": "-35.2809#149.1300",
313313
}
314314

@@ -340,9 +340,9 @@ func ExampleDecode_decodeHookFunc() {
340340
var result Person
341341

342342
decoder, errDecoder := NewDecoder(&DecoderConfig{
343-
Metadata: nil,
343+
Metadata: nil,
344344
DecodeHook: toPersonLocationHookFunc(), // Here, use ComposeDecodeHookFunc to run multiple hooks.
345-
Result: &result,
345+
Result: &result,
346346
})
347347
if errDecoder != nil {
348348
panic(errDecoder)

0 commit comments

Comments
 (0)