if I have PersonManager struct and it has *[]Person array. I want to range every item in this array. For example
manager := *PersonManager
for ii := 0; len(*manager.allPersons); ii++{
fmt.Println(manager.allPersons[:ii].name)
}
for this example, manager variable is pointer and array that in this variable is pointer too. How can I range this items?
Not: I m getting cannot slice manager.allPersons (type *[]Person) error