Array in golang

Array in golang Rather than linked to a single type (string), you can use the reflect package and interfaces to make it a little indifferent. The following is my repair of your code: Main Importing package "FMT" Import "Reflect" FUNC IN_Array (Val Interface {}, Array interface {}) (exists BOOL, INT INDEX) {exists = false index = -1 Switch Reflect. ................
................