Files
moxa/_test/interface34.go

12 lines
129 B
Go

package main
import "fmt"
func main() {
s := [2]interface{}{1: "test", 0: 2}
fmt.Println(s[0], s[1])
}
// Output:
// 2 test