Go Language Modularization: Difference between revisions
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
A workspace may contain multiple [[#Project|projects]]. | A workspace may contain multiple [[#Project|projects]]. | ||
<font color=darkkhaki>Define the relationship between workspace and the <code>[[Go_Runtime#GOPATH|GOPATH]]</code> variable. | <font color=darkkhaki>Define the relationship between workspace and the <code>[[Go_Runtime#GOPATH|GOPATH]]</code> variable.</font> | ||
=<span id='Project'></span>Project= | =<span id='Project'></span>Project= |
Revision as of 00:24, 15 August 2023
External
Internal
Overview
A standard organization of the files that are part of a project makes easier to share code with other people who also use the same standard. Go workspaces encourage such a standard.
Overview
Workspaces
The standard workspace layout is:
. ├─ src ├─ pkg └─ bin
This layout is recommended, but not enforced.
A workspace may contain multiple projects.
Define the relationship between workspace and the GOPATH
variable.
Project
Packages
A package is a group of related source files. A package can be imported by other packages.
Dependencies
TODO
Deplete, merge into this document and delete:
- Go Concepts - Packages
- Go Concepts - Dependency Handling
- Go Concepts - Standard Library
- Go Concepts - Runtime