diff --git a/content/posts/data-interfaces.md b/content/posts/data-interfaces.md index 08c8757..d152252 100644 --- a/content/posts/data-interfaces.md +++ b/content/posts/data-interfaces.md @@ -30,11 +30,11 @@ type Dog struct { func (d Dog) Move(x, y int) (int, int) { return x, y } -{{< / highlight >}} +``` Dog is now a Mover! No need for keywords like `implements`. The compiler just checks at the various boundaries in your app, like struct definitions and function signatures. -{{< highlight go "linenos=table">}} +```go type Map struct { Actors []Mover }