How to define Golang interface for methods on struct pointer

For structs, it is possible to define a func that can update struct variables. Is there any way to use those functions in interface? In the following code, I tried to create a minimal example to describe my question. two struct of Rect and Circle are defined. Both of the structs have Perimeter and Expand… Read More How to define Golang interface for methods on struct pointer