go get github.com/thejerf/abtime
A library for abstracting away from the literal Go time library, for testing and time control.
In any code that seriously uses time, such as billing or scheduling code, best software engineering practices are that you should not directly access the operating system time. This module provides you with code to implement that principle in Go.
See some discussions:
This module is fully covered with godoc, including examples, usage, and everything else you might expect from a README.md on GitHub. (DRY.)
This is at least beta quality now, and if you're thinking about using it, bear in mind that what it really offers is a structure, not a huge pile of code. Should the code turn out incorrect, it would be easy for you to fix.