This tutorial demonstrates several techniques for using mock objects in Go tests.
Find the tutorial here.