Writing Testable Go Code and Fast Unit Tests with Mocking (Episode 0)
Channel: Go In 5 Minutes
Date: 2015-09-26

Learn more with the Ultimate Guide to Web Apps in Go: https://bit.ly/webapps-go

Welcome to the first episode of Go in 5 Minutes!

In this screencast I show how to write code in such a way that it can rely on external services, but you can still write unit tests that don't need those services running.

The pattern that I'll show is applicable all over your codebase. Using interfaces wisely, you can write extensive, fast and focused unit tests.

Check out all the code in this screencast at http://bitly.com/goin5minutes under episode 0.

Sign up for our newsletter to get new screencast notifications by email: http://www.goin5minutes.com/subscribe/index.html