Blog What we do Support Community
Login Sign up

Go interfaces make test stubbing easy

Published on by John Graham-Cumming.

Go's "object-orientation" approach is through interfaces. Interfaces provide a way of specifying the behavior expected of an object, but rather than saying what an object itself can do, they specify what's expected of an object. If any object meets the interface specification it can