I'm trying to access to a struct properties with a variable who contains the property key.
For example, i got this struct :
type person struct {
name string
age int
}
I have a variable "property" who contain a string value "age".
I would like to access to the age with something like person.property ?
Do you think it is possile in golang ?