On Tuesday, January 10, 2017 at 9:52:06 AM UTC+2, Chetan Gowda wrote:
Old data remains as it is in the existing allocation. It will be > overwritten as you fill up the slice again. This happens in case of group = group[:0], OP asks what happens in case of group = make( []Area, 0, MAX ), In that case old data will be garbage collected when GC runs. Djadala -- 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.