I know how to pass it when the arguments are ... strings
But this case is a bit different:
func main() {
args := []string{"hello", "world"}
fmt.Println(args...)
}
https://play.golang.org/p/7ELdQQvdPvR
The above code throws the error cannot use args (type [] string) as type [] interface {} in argument to fmt.Println
What would be the most idiomatic way to achieve this?