for i, user := range myList {
if user.Disabled {
myList = append(myList[:i], myList[i + 1:]...) // remove user from return list
}
}
Is using append this way (to remove an index), inside of the range loop of the same array I'm working with, safe... since the size of myList is being changed within it?
-j
-j