How you manage your dependencies, build, run, and deploy your applications is a matter of preference. It's often a good idea to get all of the developers in your team to build applications the same way. The techniques shared in this section demonstrate the way I built the demo applications for this book. I kept it simple. However, the rest of the story is that I rarely build applications in isolation like I did for this book. Nearly every time, I use Docker in my development/test/deployment
workflow. Note that the use of Docker is out of scope of this book.
This is how I resolved the build errors that occurred when converting Chapter 4, SOLID Design in Go, to the dot init technique.
First, I used the cd
command to direct to the project's root directory (where the project
is Chapter 4, SOLID Design in Go, source code):
Next, I ran glide-update
to tell Glide to put the dependencies in the vendors directory:
But, that failed because the import...