How would i call a function that returns array to the variable which will suppose its of type array, so i can itterate it.
type User struct {
char string
numb string
}
type Users []User
func main() {
a := get()
for i := range a {
fmt.Println(i)
}
}
func get() []User {
return Users{"a","1","b","2","c","3"}
}