Skip to content

Commit 17289ee

Browse files
committed
Add inline for decodeStructFromMap
1 parent fab7eca commit 17289ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapstructure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ func (d *Decoder) decodeStructFromMap(name string, dataVal, val reflect.Value) e
13211321
// We always parse the tags cause we're looking for other tags too
13221322
tagParts := strings.Split(fieldType.Tag.Get(d.config.TagName), ",")
13231323
for _, tag := range tagParts[1:] {
1324-
if tag == "squash" {
1324+
if tag == "squash" || tag == "inline" {
13251325
squash = true
13261326
break
13271327
}

0 commit comments

Comments
 (0)