bugsmithA to Programming • 4 months agoWhat even is “Dependency Injection”? (a practical example using Go)medium.commessage-square4arrow-up118arrow-down13cross-posted to: golang
arrow-up115arrow-down1external-linkWhat even is “Dependency Injection”? (a practical example using Go)medium.combugsmithA to Programming • 4 months agomessage-square4cross-posted to: golang
minus-square@[email protected]linkfedilink3•4 months agoIt does and they’re kinda weird (if you’re used to more like Java-style interfaces). It flips the dependency between the interface and implementor on its head. Worth looking it up, it’s interesting.
I didn’t know Go had interfaces. Neat
It does and they’re kinda weird (if you’re used to more like Java-style interfaces). It flips the dependency between the interface and implementor on its head. Worth looking it up, it’s interesting.