Go Programming
How to Statically Block `time.Now()` in Your Go Tests
Tired of flaky Go tests caused by `time.Now()`? Learn a powerful technique to statically block time using linker flags for deterministic, reliable testing.
Daniel Petrov•
7 min read