Project Organization
This chapter is about how you can start a new project, organize a source tree, and manage the packages you need to develop your programs. A well designed project structure is important because when other developers work on your project or try to use components from it, they can quickly and easily find what they are looking for. This chapter will first answer some of the questions you may have when you are starting a new project. Then, we will look at how you can use the Go package system, work with standard library and third-party packages, and make it easy for other developers to use your packages.
This chapter includes the following recipes:
- Creating a module
- Creating a source tree
- Building and running programs
- Importing third-party packages
- Importing specific versions of packages
- Using internal packages to reduce API surface
- Using a local copy of a module
- Workspaces
- Managing the versions of your module