Injecting a Clock in Go: Testable Time in Your Hexagonal Domain

📰 Dev.to · Gabriel Anhaia

Kill time.Now() calls buried in Go business logic. A Clock port, a real adapter, a fake, and tests that stop flaking on midnight.

Published 3 Jul 2026
Read full article → ← Back to Reads