You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When decoding a struct that has data nested inside two layers of slices or maps, the performance is impacted exponentially based on the number of values.
typeFormRequeststruct {
Foos []*NestedFoo`form:"foos"`
}
typeNestedFoostruct {
Bars []*NestedBar`form:"bars"`
}
typeNestedBarstruct {
Bazs []string`form:"bazs"`Lookupmap[string]string`form:"lookup"`
}
// example payload to decode into FormRequestvarurlValues= url.Values{
"foos[0].bars[0].bazs": []string{"..."},
"foos[0].bars[0].lookup[A]": []string{"..."},
...
}
When decoding a struct that has data nested inside two layers of slices or maps, the performance is impacted exponentially based on the number of values.
Go Playground
The text was updated successfully, but these errors were encountered: