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

How to validate struct having pointer variables? #68

Open
darkLord19 opened this issue May 21, 2019 · 1 comment
Open

How to validate struct having pointer variables? #68

darkLord19 opened this issue May 21, 2019 · 1 comment
Labels
help wanted Need PR Need pull request from community

Comments

@darkLord19
Copy link

For example this

type X struct {
       a *int `json:"a"`
}
@thedevsaddam thedevsaddam added help wanted Need PR Need pull request from community labels Jun 14, 2019
@edwardanthony
Copy link

edwardanthony commented Oct 15, 2023

This is really essential. With the most popular framework out there, Gin, we have to use BindJSON to bind the request body into struct. This is the same when we use bare net/http, we need to unmarshal the request body into struct.
And most of the time we will use pointer for the struct fields.

I wonder if you have any update for this because this is still open since 2019.
Do you have any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Need PR Need pull request from community
Projects
None yet
Development

No branches or pull requests

3 participants