上QQ阅读APP看书,第一时间看更新
Introducing the Delinkcious directory structure
The Delinkcious system at this stage of initial development consists of three services:
- Link service
- User service
- Social graph service
The high-level directory structure includes the following sub directories:
- cmd
- pkg
- svc
The root directory also includes some common files such as README.md and the important go.mod and go.sum files to support the Go modules. I use the monorepo approach here, so the entire Delinkcious system will live in this directory structure and is considered a single Go module, albeit with many packages:
$ tree -L 1
.
├── LICENSE
├── README.md
├── go.mod
├── go.sum
├── cmd
├── pkg
└── svc