atc0005 / notes

Various notes, quick references and topics I want to explore further
MIT License
0 stars 0 forks source link

Go | Interfaces: Implementing with values vs. pointers #31

Open atc0005 opened 4 years ago

atc0005 commented 4 years ago

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.


refs https://www.youtube.com/watch?v=YS4e4q9oBaU