I have a file with var
block. Is there way to get all variables in the block, including original variable name and value?
reflect
can do such things but how can I get the variable names form other package?
package data
var(
Str1 = "foo"
Str2 = "bar"
Int1 = 123
)