Two Ways of Passing Dependencies in Go

Опубликовано: 02 Июнь 2026
на канале: smolbit
6,241
262

Passing dependencies in Go can get messy - fast. In this video, we walk through two popular approaches to structuring dependencies in your application: using an App struct to hold everything vs. passing dependencies explicitly to each function.

You'll learn:

the pros and cons of each method
how they affect testability, readability, and maintainability
which approach might work best for your project