git.iko.soy/typeable/oauth2-proxy
on master help sign in
doc: fix mapstructure configuration comments

Signed-off-by: Jan Larwig <jan@larwig.com>

commitaee540a27741090b28bad3952d752dee8f65ad20 authorJan Larwig <jan@larwig.com> dateFri 28 Nov 2025, 17:20 (1 year ago) parent15041dd
1 file changed+2−2
pkg/apis/options/load.go+2−2
pkg/apis/options/load.go+2−2
@@ -95,10 +95,10 @@ func Decode(input interface{}, result interface{}) error {
9595 ),
9696 Metadata: nil, // Don't track any metadata
9797 Result: result, // Decode the result into the prefilled options
98− TagName: "yaml", // Parse all fields that use the json tag
98+ TagName: "yaml", // Parse all fields that use the yaml tag
9999 ZeroFields: false, // Don't clean the default values from the result map (options)
100100 ErrorUnused: true, // Throw an error if keys have been used that aren't mapped to any struct fields
101− IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with json
101+ IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with yaml
102102 })
103103 if err != nil {
104104 return fmt.Errorf("error creating decoder for config: %w", err)