labstack / echox

Echo cookbook and website
https://echo.labstack.com
MIT License
408 stars 285 forks source link

Unknow Type when binding slice of struct in formdata request #162

Open bashayerAlsalman opened 3 years ago

bashayerAlsalman commented 3 years ago

can not bind a slice of struct when the request type is formdata

type request struct {
     id                uint          `form:"id" json:"id"`
     Products   []product `form:"products"`
 }

 type product struct {
     Name          string      `form:"name"`
     Quantity      int           `form:"quantity"`
    Price              float32  `form:"price"`
}