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

Problem with substructs and slice of substruct #34

Open
JoydS opened this issue Jun 27, 2022 · 1 comment
Open

Problem with substructs and slice of substruct #34

JoydS opened this issue Jun 27, 2022 · 1 comment

Comments

@JoydS
Copy link

JoydS commented Jun 27, 2022

Hello guys,

Im trying to implement your code but I have some issues with it.

In the case I have substruct or slice of substruct, the lib is not working.

type Request struct {
    SeveralSubRequests []*struct {
	Foo  string `json:"foo" conform:"trim"`
	Bar  string `json:"bar" conform:"trim"`
    } `json:"several_sub_requests"`
}
type Request struct {
    SubRequest *struct {
        Foo  string `json:"foo" conform:"trim"`
        Bar  string `json:"bar" conform:"trim"`
    } `json:"sub_request"`
}
@JoydS
Copy link
Author

JoydS commented Sep 15, 2022

Little up on the subject ! Thanks

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