Go Language Modularization: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:
=Overview=
=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 [[#Workspace|workspaces]] encourage such a standard.
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 [[#Workspace|workspaces]] encourage such a standard.
=TODO=
<font color=darkkhaki>Deplete, merge into this document and delete:
* [[Go Concepts - Packages]]
* [[Go Concepts - Dependency Handling]]
* [[Go Concepts - Standard Library]]
* [[Go Concepts - Runtime]]
</font>


=Overview=
=Overview=

Revision as of 00:11, 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.

Project

Packages

Dependencies