Is theere a way to use a string as a function name and call it?
I have a map of strings to function names
stuff := map[string]string{'keyword','function'}
and when the keyword is used, i want to call function with 2 arguments
stuff['keyword'](arg1,arg2)
But it gives me this error:
cannot call non-function key (type string)
Is there a way to keep my string to string map and still achieve this?