Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bashayerAlsalman opened this issue Nov 8, 2020 · 0 comments
Open

Comments

@bashayerAlsalman
Copy link

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"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant