This commit is contained in:
Thomas Pelletier
2021-03-18 17:19:50 -04:00
parent cb678e6221
commit a577df2dbb
2 changed files with 76 additions and 1 deletions
+6 -1
View File
@@ -240,7 +240,12 @@ func scopeTableTarget(append bool, t target, name string) (target, error) {
case reflect.Map:
return scopeMap(x, name)
case reflect.Slice:
return scopeSlice(append, t)
t, err := scopeSlice(append, t)
if err != nil {
return t, err
}
append = false
return scopeTableTarget(append, t, name)
default:
panic(fmt.Errorf("can't scope on a %s", x.Kind()))
}