--

Glad you enjoyed it!

And to be honest, this article is in need of a rewrite/update. But, I'm guessing you're worried about having a large number of dependencies on the server struct? I honestly wouldn't worry too much about it. There will be some boilerplate setup when using dependency injection but it does make your life a lot easier when it comes to testing.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Morten Vistisen
Morten Vistisen

Written by Morten Vistisen

I’m a software engineer working mainly with Go and Rust. Find me on Twitter @mbvisti

No responses yet

Write a response