Don't use that way. You can try that another approach: https://play.golang.org/p/Nu8zD1stOd
Em segunda-feira, 20 de novembro de 2017 14:48:31 UTC-2, Trig escreveu: > > 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? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.