Interfaces can be tricky to understand for novice developers. I remember it took a while for the concept to click with me in the late 90s with interfaces in Delphi. In Google Go (aka Golang), there are no objects so interfaces are just a collection of methods. If the type implements those methods then it implements that interface, even without explicitly saying so.
In tutorial 9, I explain about them with a few examples. You can copy and paste them into Go Playground
- Link to all aspects of Google Go
Comments
No comments yet. Leave a Comment

