![Learning Functional Programming in Go](https://wfqqreader-1252317822.image.myqcloud.com/cover/487/36700487/b_36700487.jpg)
The directory structure of the source files
Directories correspond to the book's units and chapters:
![](https://epubservercos.yuewen.com/6176FA/19470400908922906/epubprivate/OEBPS/Images/Chapter_236.jpg?sign=1738880774-KkrANVMpkyeVCmM1Vc6oJY3SJoPNZoHP-0-bd39b90004e37c56fb790fb7497d3b2f)
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:
![](https://epubservercos.yuewen.com/6176FA/19470400908922906/epubprivate/OEBPS/Images/Chapter_250.jpg?sign=1738880774-4UourPKypeaREO1GJmoeEJgbsfWYS3fv-0-b40c9343e2ce17ce5db31ee125e3063d)
Each chapter is pided into sequentially numbered directories that are in the order of their appearance in the book.