Answer the question
In order to leave comments, you need to log in
How to create a variable in go with a name that is written in another variable?
There is a variable of type string. It has a word in it. How to create a variable with the name that is written to the variable?
Answer the question
In order to leave comments, you need to log in
In static languages, such things are implemented differently:
by the corresponding structures.
if it’s completely unbearable, then with the help of reflection
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question