Migrating to go mod in just 3 steps

Checkout latest golang version

You could ask me, why the last? Because if we all are Software enthusiast we should desire to test the latests technologies! (By the way, you could use a golang 1.11.X, but you should wonder why not using the latest available version…)

Find a project to be migrated

In this article, I will migrate a personal project in which I worked a few months ago. In this project, I made use of Glide for managing the dependencies. You could do the same for any of your projects.

Adapt the project structure

This project is structured with a src folder that contains a subfolder mollydb and inside of this one a vendor directory with the dependencies.

That’s all folks!

Our project was migrated!!



If tech can change the world... why don't we use it to make it better? https://www.linkedin.com/in/ivan-corrales-solera/

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store