https://groups.google.com/forum/#!topic/golang-nuts/gJtXQhpoA4U
On Tuesday, January 22, 2019 at 5:59:51 PM UTC-4, Xinhu Liu wrote: > > In "A Tour of Go <https://tour.golang.org/methods/8>" I read: > > In general, all methods on a given type should have either value or >> pointer receivers, but not a mixture of both. > > > But why not? > > Methods having value receiver can be called by both value type and pointer > type. The same is for methods having pointer receiver. > > What is disadvantages of mixing value and pointer receiver? > -- 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.