Hi Joe, to my current understanding of things i would say that both ways are the same and without further context it seems similar. Using a pointer reciever it seems more object-oriented to me, as i have spend many years working in Java.
I know this: type S struct {} func (s S) pepe () {} "s.pepe()" is Equals to "S.pepe(s)" So... very good question! I hope someone could answer with more information. El sábado, 10 de agosto de 2019, 19:57:34 (UTC-3), joe mcguckin escribió: > > Is there a recommended usage for either style? > > Take ListenPacket for example. There a (*ListenConfig).ListenPacket > version and a version that takes arguments. > > What's the difference and what is the desired usage of either? > > Thanks, > > Joe > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0e4d5d73-4815-4650-989a-b4ffd8dc5474%40googlegroups.com.