I want to get member's reflect.Type via struct definition, but not it's instance. #34521
Labels
FrozenDueToAge
Unfortunate
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I can get reflect.Type via 'MyStruct' itself, but not it's instance.
I only want to get the member's tag and type, if I need to create an object of this class first, it looks strange
What did you see instead?
I can get reflect.Type via 'MyStruct' itself, but not it's instance.
I only want to get the member's tag and type, if I need to create an object of this class first, it looks strange
The text was updated successfully, but these errors were encountered: