My input is an interface{}
, and I know it can be an array of any type.
I'd like to read one of the elements of my input, so I try to convert my interface{}
into an []interface{}
, but go will give me the following error:
panic: interface conversion: interface {} is []map[string]int, not []interface {}
How can I do that conversion? (without reflect if possible).
Thanks