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

update: ctx.BodyParser #316

Merged
merged 2 commits into from Apr 28, 2020
Merged

update: ctx.BodyParser #316

merged 2 commits into from Apr 28, 2020

Conversation

bestgopher
Copy link
Contributor

If the query string is id=1&name=tom&hobby=basketball&hobby=football, then can be parsed and get all hobby param。

type User struct {
   Id  int
   Name string
  Hobby []string
}

fmt file
@Fenny
Copy link
Member

Fenny commented Apr 28, 2020

I tested this and it works fine 👍 I will add a test after merging your PR

@Fenny Fenny merged commit 1cf0d25 into gofiber:master Apr 28, 2020
This was referenced Apr 28, 2020
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

Successfully merging this pull request may close these issues.

None yet

5 participants