bugsmith to [email protected] • 10 months agoWhat even is “Dependency Injection”? (a practical example using Go)medium.commessage-square4fedilinkarrow-up117arrow-down13cross-posted to: [email protected]
arrow-up114arrow-down1external-linkWhat even is “Dependency Injection”? (a practical example using Go)medium.combugsmith to [email protected] • 10 months agomessage-square4fedilinkcross-posted to: [email protected]
minus-square@VoterFroglink3•10 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.