-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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 JSON body request with nested slice of struct #3566
Comments
I checked my code again and still getting
|
I ran the application in a Ubuntu 22.04 virtual box and it is running as expected as @shplume said. I still can't find what is wrong with it when I am running it on my windows machine. I uninstalled Go and deleted the go folder then installed go again and tried. But still getting the error. |
I copied your code again and ran it on my windows machine. But the result was not changed, my environment is windows 10 Home build: 19045.2846. I‘m sorry that I can't help you more. |
you forget r in attRibute :). Your code is attibute not attribute :) |
Description
Trying to bind a struct with nested slice of struct. I have looked into following issues and tried them but still getting
nil
for the nested slice of struct.How to reproduce
Expectations
Actual result
In the
log.Printf
I am gettingnil
forAttributes
Environment
The text was updated successfully, but these errors were encountered: