The directory structure of the source files
Directories correspond to the book's units and chapters:
You'll find an executable init script file in all project directories. It's there to make your life easier. When you cd into a project directory, first source the init script. You can do that by either typing source init or . init . (The dot (.) and source commands are interchangeable.) The init script will use Glide to install any dependencies for your project in a vendors directory.
For details see the How to build and run Go project section in the Appendix, Miscellaneous Information and How-Tos.
PS: Dependencies are third-party Go libraries that our Go application needs to run properly.
Let's run our first Go application as follows:
Each chapter is pided into sequentially numbered directories that are in the order of their appearance in the book.