The examples for this emphasized that your receivers had to match how the interface would be used. If you used the interface as a value, all receivers would need to be of value type. That is, if I recall correctly.
I need to study this further.
Method set of value is all methods with value receivers
Method set of pointer is all methods, regardless of receiver type
The examples for this emphasized that your receivers had to match how the interface would be used. If you used the interface as a value, all receivers would need to be of value type. That is, if I recall correctly.
I need to study this further.
value
is all methods with value receiverspointer
is all methods, regardless of receiver typerefs https://www.youtube.com/watch?v=YS4e4q9oBaU