Refactoring to modules: Why and how – all you need to know in (less than) an hour

A presentation at GopherCon IL 2019 in in Tel Aviv-Yafo, Israel by Baruch Sadogursky

Go modules are here to stay and it’s about time to start modularizing your code. We’re here to help! In this session, you’ll learn why and how to do it by examining a production code successfully refactored to modules.

In this talk, we’ll examine the refactoring of the JFrog CLI project to modules. We’ll start by introducing modules – why and how, will talk about the benefits and the downsides of using modules and the difference between modules and go-dep. Next, we’ll review the changes switching to modules require and will finish up by reviewing the real-world application, before and after.