Can't use maps?
No sane way I know of
You can also use interface as struct field, close to what you want, but i can't think of dynamic fields in go as the nature is strict type
You just can't
you’re mostly likely doing it wrong. What are you trying to do?
Обсуждают сегодня