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. > > On each second i make range on it healthcheck list to process. > > But when i get the object inside range, it change the pointer address, it > makes a copy of the healthcheck, what is a problem to me. > > Can anyone help me get the current object inside the slice on range? > > Example: > https://play.golang.org/p/1eUPyU2Mxv > > Thanks. > -- 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.