Articles with the tag "interfaces"

Interfaces Define Requirements

Go's duck typing allows us to write implementations before interfaces, but it also enables so much more. In this article we explore how duck typed interfaces allow us to communicate clear requirements in our functions and structs.

How do interfaces work in Go, and why do I keep seeing the empty interface (interface{})?

Learn about interfaces in Go by walking through an example and comparing them to interfaces in other languages, plus an explanation of the empty interface.

Avatar of Jon Calhoun
Articles and Tutorials by
Jon Calhoun

Jon Calhoun is a full stack web developer who teaches about Go, web development, algorithms, and anything programming. If you haven't already, you should totally check out his Go courses.

Previously, Jon worked at several statups including co-founding EasyPost, a shipping API used by several fortune 500 companies. Prior to that Jon worked at Google, competed at world finals in programming competitions, and has been programming since he was a child.

Recent Articles All Articles Mini-Series Progress Updates Tags About Me Go Courses

©2024 Jonathan Calhoun. All rights reserved.