To be fair, I have included a section that extols the benefits of Go modules and hints that this is the way forward.
However, for the book source code, I opted to use dep to make sure it can be used by folks that use older Go compiler versions that lack support for Go modules. That being said, it should be trivial to convert the repo to use Go modules.