Skip to content

Commit

Permalink
Allows custom values of hooks to be entered into a map
Browse files Browse the repository at this point in the history
  • Loading branch information
baagod committed Jul 17, 2024
1 parent 59c6cb2 commit 0df41a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapstructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ func (d *Decoder) decodeMapFromStruct(name string, dataVal reflect.Value, val re
reflect.Indirect(addrVal).Set(vMap)

// ---------- Start
// 允许将 hook 的定义值输入 map
// Allows custom values of hooks to be entered into a map
input, err := d.parseInput(name, x.Interface(), reflect.Indirect(addrVal))
if err != nil {
return err
Expand Down

0 comments on commit 0df41a1

Please sign in to comment.