I have a map with string keys and different types for values, when printing it looks like this:
map[command:ls count:[1 1]]
When checking reflect.TypeOf
on the count it returns type []interface{}
. I cannot access the values by index, and if I try passing it into a function that accept a param of type []interface{}
it claims that I'm tying to pass a value of type interface{}
I would like to access the count in this example which would be 2 values. 1
and 1
.