I hava a struct:
type User struct {
Id int `json:"Id"`
}
So How to access to struct tag json:"Id"
itself?
I hava a struct:
type User struct {
Id int `json:"Id"`
}
So How to access to struct tag json:"Id"
itself?
Using reflection, where the tag is an attribute of the struct field.
Thank you.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.