doc: fix mapstructure configuration comments
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
parent
15041dd116
commit
aee540a277
|
|
@ -95,10 +95,10 @@ func Decode(input interface{}, result interface{}) error {
|
|||
),
|
||||
Metadata: nil, // Don't track any metadata
|
||||
Result: result, // Decode the result into the prefilled options
|
||||
TagName: "yaml", // Parse all fields that use the json tag
|
||||
TagName: "yaml", // Parse all fields that use the yaml tag
|
||||
ZeroFields: false, // Don't clean the default values from the result map (options)
|
||||
ErrorUnused: true, // Throw an error if keys have been used that aren't mapped to any struct fields
|
||||
IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with json
|
||||
IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with yaml
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("error creating decoder for config: %w", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue