Go Project: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
. | . | ||
├── [[#cmd|cmd]] | |||
├── [[#pkg|pkg]] | |||
├── [[#internal|internal]] | |||
├── Makefile | ├── Makefile | ||
├── README.md | ├── README.md | ||
Line 21: | Line 24: | ||
└── .gitignore | └── .gitignore | ||
</font> | </font> | ||
==Directories== | |||
===<tt>cmd</tt>=== | |||
===<tt>pkg</tt>=== | |||
===<tt>internal</tt>=== | |||
=TODO= | =TODO= |
Revision as of 18:51, 14 December 2023
External
Internal
Overview
This page collects recommendation and facts about Go projects and it was mainly written with the assumption that one project lives in its own repository and contains a single module, as described in Packages, Modules, Projects and Repositories. Of course project can contain multiple modules, but that is not recommended.
Project Layout
This layout is inspired by:
. ├── cmd ├── pkg ├── internal ├── Makefile ├── README.md ├── go.mod ├── go.sum └── .gitignore
Directories
cmd
pkg
internal
TODO
Integrate Vendoring.