Learning Golang (some rough notes) - S01E05 - Interfaces
This page really threw me, for several reasons:
-
The text notes that there’s an error (so why don’t they fix it?)
-
The provided code doesn’t run (presumably because of the above error)
-
It’s not clear if this is a deliberate error to illustrate a point, or just a snafu