package main
func test() {
arr := []string{
"1","2","3",
}
inter := ArrayToInterface(arr)
// interface to array
}
func ArrayToInterface(t interface{}) interface{} {
return t
}
The array is passed to a function and converted to interface type. Now how to convert it to array