Testable Services Without Interfaces

I usually don’t use interfaces, and prefer function signatures. Here’s the pattern applied to a plant watering service with sensors and recommendations.

Go PatternsTestingDependency Injection