Tag Archives: implement

Golang interface method – pointer receiver or value receiver

Recently I have been working with Golang interface.

There are lots of confusions on how to use interface in Golang, particularly how to implement the methods in interface. Should I implement pointer receiver, or value receiver? How to mutate a struct that implements an interface? Can I implement both? Continue reading