[go-nuts] Re: is this safe?

2017-11-20 Thread nilton
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 > re

[go-nuts] Re: Problem with slice and object copy

2016-12-07 Thread Nilton Henrique Kummer
Hi Paulo, Just FYI. Next time that you have debugging, you can use fmt.Printf("%p", item). The param %p will show the memory address value. []'s Em terça-feira, 6 de dezembro de 2016 20:40:26 UTC-2, Paulo Coutinho escreveu: > > Hi, > > In my project i have a slice of Healthcheck objects. > > O