You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is the number in both curly braces in the output both 10 when the struct has only one field? Or, why is the value of field I different when the number of fields in the struct is different? Such an output is counter-intuitive.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
My code:
Output:
What did you expect to see?
What did you see instead?
Why is the number in both curly braces in the output both 10 when the struct has only one field? Or, why is the value of field I different when the number of fields in the struct is different? Such an output is counter-intuitive.
The text was updated successfully, but these errors were encountered: