How to transfer interface to array

    package main
    func test() {
        arr := []string{
            "1","2","3",
        }
        inter := ArrayToInterface(arr)
        // inter?
    }
    
    func ArrayToInterface(t interface{}) interface{} {
        return t
    }

now we have a problem, that is, how to turn back an array from interface {}

.
Dec.30,2021

is no different from other types of conversions

func InterfaceToArray(t interface{}) {
    if v,ok := t.([]string); ok {
        fmt.Println(v)
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaee61-2213.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaee61-2213.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?