Mocking time with Go
Every now and then I find developers struggling with handling time
in their tests, so I wanted to address that in this blog post. Typically there would be code that looks something like the below that needs to be tested:
import (
"fmt"
"time"
)