Introduction to Go Interfaces

Jonathan Seow
Apr 17 · 9 min read
Hello Gophers! Photo by Lukáš Vaňátko on Unsplash.

When I first started programming in Go, I find Go interfaces a confusing topic to understand. After many hours of reading and researching, I have produced this article as an attempt to simplify Go interfaces for budding Gophers.

In this tutorial, I aim to answer the following questions with plain, simple English and childlike examples.

  1. What is a Go interface? How do you use it?