Morten Vistisen
Mar 22, 2021

Hi duy le,

Glad you liked it! In that case I would create 3 packages in the repository directory, one for each. And then simply just set them up with NewMysql, NewRedis and NewMongodb. Then you can add them as dependencies for the services that needs them. Does that make sense?

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

Responses (1)

Write a response