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

Bind Path Param #20

Open
wwwxu opened this issue Dec 23, 2022 · 1 comment
Open

Bind Path Param #20

wwwxu opened this issue Dec 23, 2022 · 1 comment

Comments

@wwwxu
Copy link

wwwxu commented Dec 23, 2022

How can I bind PathParam to Struct? Thanks!
like, request URI is hello/:id, I wanna bind id to Struct

type HelloRequest struct {
    Id uint64 `json:"id,omitempty"`
}
@wwwxu wwwxu changed the title Bind Get Param Bind Path Param Dec 23, 2022
@wwwxu
Copy link
Author

wwwxu commented Dec 23, 2022

It only supports bind param from application/json and form?
image

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