The journey to automatic dependency injection in go
summary
Builds a proof‑of‑concept runtime injector that uses reflection to recursively instantiate structs, a hand‑generated type registry created by parsing source with the AST-based registry, and conventions for factories, share/bind semantics and delegates; demonstrates a live MVC demo with DB sharing but finds runtime DI brittle, slow and hard to debug; pivots to Google Wire for compile-time generation which produces safe, generated factories that actually work for production.
AI-written summary · about
