File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -949,9 +949,11 @@ func decode(input interface{}, config *mapstructure.DecoderConfig) error {
949949
950950// UnmarshalExact unmarshals the config into a Struct, erroring if a field is nonexistent
951951// in the destination struct.
952- func UnmarshalExact (rawVal interface {}) error { return v .UnmarshalExact (rawVal ) }
953- func (v * Viper ) UnmarshalExact (rawVal interface {}) error {
954- config := defaultDecoderConfig (rawVal )
952+ func UnmarshalExact (rawVal interface {}, opts ... DecoderConfigOption ) error {
953+ return v .UnmarshalExact (rawVal , opts ... )
954+ }
955+ func (v * Viper ) UnmarshalExact (rawVal interface {}, opts ... DecoderConfigOption ) error {
956+ config := defaultDecoderConfig (rawVal , opts ... )
955957 config .ErrorUnused = true
956958
957959 err := decode (v .AllSettings (), config )
You can’t perform that action at this time.
0 commit comments