I'm currently working with a bit of code at the moment, that involves a var with type []interface{}
It has values within it, that I could easily access like so:
//given that args is of type []interface{}
name := args[0]
age := args[1] //ect...
This is fine, but I'd like to be able to use the strings
Join
function, and it would typically error due to it requiring type []string
and not type []interface{}
.
What would be the most appropriate solution to be able to use the Join
function, I'd guess maybe some sort on conversion?