golang接口如何转换数组?

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

Using type assertion

for _, i := range inter.([]string){
    fmt.Println(i)
}