AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Solve a Circle Dependency Error in Go
Go subtly enforces a lot of design lessons learnt over the past 50 years. People often don't appreciate that, right? Like your handler can like depend on your domain, but your domain shouldn't be coupled to HTTP, right? But Go is the first language I've used where it's actually properly enforced - you just won't let you do it. You know, people get frustrated with that circle dependency error.